finished part 3 of search