moved to template structure