restores history