reordering the history