cleanup unused code.