removing lock