Gradient working for ksi, mu_t, g