added initLock