use the correct local variable