fix class method