remove r unused resizing function