changed position and value of THREAD_COUNT