update the history