modify the data update record function