compose partitions method updated