remove unused 'threadName' var