processing streams