clean up root of tree