implemented myXor (not tested)