update to template