clean some unused code