removed extra stuff from xor