return the stream when created