distinct needed for the search