removes unused submodules