remove superfluous classes