comments and formatting
xor works