correct partition size calculation