edited search_report func