modify axis calibration function