changed streaming method