tree update on the fly without clear

new bracket parsing