added isBoundary