updated to stream