updates tree command