removed duplicated scannign