calibration func unfinished