working more on resizing