tree re-prune (but currently bugged)