working on the templates