fix "unused local variable" warning