adding jsdoc