remove unused variable workers, make THREADS static