update doc pointer