working solve_ode for vars