improve the scan speed