added transaction-safe data update #2