removed silly loop for infinite model.