create template structure