remove extra lines from calibration code