remove unnecessary loop
Increase number of THREADS

Bugfix