reduce the thread number