added the boundary condition