Assign rather than compute twice

Assigning new size is more straightforward code rather than computing
new size multiple locations. Because the code wants to update size.