cleaning up nonlinear chapter