refine purpose of the scanner.