fix bug in obscure method: xor