introduced maximum Nrec for calibrate