update the data