remove extraneous template code