adding to template