update doc with new code