added output formatting for search results