change the template structure