removes unused defunct code