re-arrange partitions error checks