added comment for XOR