converting to class methods