refactor pool of workers