Edit boundary condition