working on the template