rewrite tree
fix
traverse create dom