added thread number selector