change to class method
update doc