modify Rect