consolidating templates