update to template structure