use the model's locked variable