added calibration functions