merging partitions