collect all inner classes