removing template comments