function for eff fit