improve slow tree output