templates restructuring