update data from history.