clean up unused tree objects