convert to class method object