another try for resizing