new version of pb_calibration