update doc to match new code