fixed errors in search_ll