finding pairs