adjusted number of threads