added xor function preferredName