add missing local variable declaration