convert to class