doc
merge intervals