added JSDoc