handling empty scans