adding templates in