adding partitioning