I don't understand this change. where does lock come from?