fixed things with calibration