correct resistance to class detection