remove inner classes