remove superfluous resources