fix unused local variable

spits out annoying compiler warnings all over the place