starting the scanner