small changes to RK4