working on random pairs