set num threads in 2.1