integrate history data part 1