getting calibration working