xor worked