moved print inside SearchResult