updated boundary condition