fix up some unused veriable crap