edited lock version