merging data from pagination