added max_scan_result