let's keep the `var` here, it makes sense because it's not used outside of this block. (even if I know that the scoping rules say that it is really declared at the beginning of the function)