Please don't declare variables in the middle of a function. This is single use, so it can be inlined with it's use on line 490