remove some unused c variables