fixed #444 updated the doc to properly reflect the function call