changed resizing function