removed unused local variables