removing template code