added back the template if