add missing local variable