why doesn't xor work...