Here too - move the `var` declarations out and assign inside.