Modification of nonlinear systems with chaos control and anticontrol