cleaning up the first part of the nonlinear chapter