updated search result to array