add merge with intervals