add partitioning calculation section