adding locks