fixed call signatures for fitting functions