simplified the signedBoundary function in larcc module