What is the logic behind doing the `xor` of the 2?