measurement and calibration