xor failing me