minor edits to scanner - compiler errors