remove previous additions to the history