completed variable size calculations