properly compare quaterions