add a sampled history segmentation script