converted to class