adjusted number of threads for small size