change class tree member function