you do not need to pass every array to stream _ select you can leave it out and use an empty array or null instead also do not forget that those arrays are passed by reference and will be modified after stream _ select returns 