added boolean comparisson based on xor