structure for templates