removed unused code.