update initial conditions