fixed msvc error (theres no xor in C++)