update mergeintervals