change formatting of history file