update arrays tree nodes