use the new ES6 block-level scoped variable declaration with 'let' instead of 'var'