xor and co in sim