Reorganization of tree