some modifications in calibration process