with calibration code