set threads and workers
remove worker and thread declaration