modified main to make calibration easier