removes bad stuff