deleted old code for calibration without amcc toolbox