eachModel optimization