removes obsolete and unused stuff