time line and group by
merging