reset initial conditions in a better way