changes a lot of 'var' to 'let'