fixed typo (#3)
removed unused local variable (#3)