now have a new version of the optimization to plot