correct formatting and jsdoc