add tree for index