reduce number of threads being created