reorganize class Frame