cleaned up some more. Trying to reproduce the stable optimization results