all these locals need `var` in front of them for sure.