implemented finding potential matches