beginnings of Q3
optimized XOR and started Q3