removing debugging content from template