update doc string of api