renamed the stream class