adds next entry in history