removed unused local variable and removed some blank lines