update sizing logic