checks for incoming parameters + jsdoc