made calibration header code more readable