moved call to scanner.initialize