bugfix: renaming from f to objective.fun in main function finished