refactoring MyFrameA
refactoring a1 positioning