overall method on lock