adding Lock