fix jsdoc comment.
refactor function parameters.