Boundary treatment