improvements to And, Or, and Xor