integrate history data part 2