Update stream.cpp