modify ode as to eliminate redundant lines