added calibration functions

UNTESTED