improved resize flow