finish the partition