calibrate function on configuration