es6 let usage for block scoping