simplify toStreams2 logic