add segment tree
modify segment tree