updated search results to array