changed the resizing