Modification of boundary condition