template consolidation