minor change and isNullScanner()