refactoring for degree of parallelism
thread safe collection factory methods