updated template model