regenerated template model