define `streams` to be an array so .length works