trying to make cooccurr work with xA and xB