more resizing improvements