updated resizing