alternative ode callback added