adding bitwise xor and bitwise not