move inner classes to bottom