working on the scanner