* don't initialize twice (cppcheck)
* reduce scope