XOR nn working