[merge_segments] added stub type for merging segments