delete dead code from divide and conquer