fixed bug in better_partition()