changed xor operator