tree formatting