restrict to class