remove unnecessary classes