remove dead classes