moving the ode solver to local problem