scanner is passing all tests