moved calibration message into function