flush the stream