Improve updateSize