merge unnecessary classes