save history data