transform to class