update API documentation
bug fix introduces with previous commit