XOR update

* XOR conforms to specification