added some jsdoc