initialize num_workers var