right partitioning