integrating calibration code into main codebase