aligned the templates