corrected optimization to correct starting values. Speed is slow on some, but looks correct