working on scanner.