fix llh calculation for higher order models