connected data into histogram
merging