remove some unused code.