needed to set mu in the gradient part of find_global_minimum