change num_threads