grouping of templates