modify according to the changes of IntervalTree Class
some changes