add numThreads==NULL in worker