modify the template structure