reversed two statements: splicing the stream array before deselecting all