removes spurious code