removed unused local variable