improving fitting efficiency