fixed XOR with ^ function. Removed the other two.