..
refactored updateSize into separate file