update doc to reflect api change