removes remaining nonlinear code/problems