some updates to the search method but it still doesnt work