resizing script upgrade