removing unused stuff from template