initial condition calculations