fix sign problem, modify measurment function remove retries if avg value is not in range