changed lock command