find perfect pair