mod to class