threadLock added