a simple,collective stream implementation