removing the template code