corrected the xor gate