working example for calibration