move inner classes