deleted scipy optimize as redundant