remove superfluous modules