added equity locking mechanism to prevent incomplete updates