implementing a form of value locking.