erase useless classes