does anyone help me with writing stream_ind function...?