added ode code