adjust addHistory