odd occuring using xor