translate history to new format