started on stream algebra