range measurement