changed a spurious 'var' to 'let'