add parallel working
little fix. take in workerCount variable into init function.