alternatively pass in an array of streams