fixed xor done