add tree dict
update,fix bug