fixed the search methods, now are working correctly