tree style rewrite
format