updated lock constraint