started calibrate() function