working on lock