changing returned funcs to be -1 as fmin_bfgs calcs min andwe want max