change num of threads