removing template cruft