improved readability of connectedIndices