Refined XOR statement further