sansa and xor: clever math!