some jsdoc
fix leaking variable