remove all unnecessary classes