eliminate duplicate solutions obtained by commutation