adds all xor operations