update history.