pass on number of threads