removes nested toctree