fix class/instance method fun