fix distinguishing between external/internal vertices