not closing scanner in stream