partially implemented calibration routine