removes unused code.