adding the template