partition size math fix