# `GSLayer checkForCoincidentPaths`

*Instance Method*

Finds paths whose nodes have coincident positions.

## Declaration

```swift
func checkForCoincidentPaths() -> [GSPath]
```

```objc
- (NSArray<GSPath *> *) checkForCoincidentPaths;
```

```python
checkForCoincidentPaths() -> list[GSPath]
```

## Return Value

The duplicate paths, without removing them from the layer.

## Discussion

Attributes from a duplicate path are copied to the first matching path.

## See Also

### Cleaning Paths

- [`GSLayer cleanUpPaths`](/Core/GlyphsCore/GSLayer/cleanUpPaths) — Removes empty and negligible paths and simplifies the remaining paths.
- [`GSLayer checkConnections`](/Core/GlyphsCore/GSLayer/checkConnections) — Updates node connections to match the geometry of their paths.
- [`GSLayer correctPathDirection`](/Core/GlyphsCore/GSLayer/correctPathDirection) — Sets closed path directions according to containment and puts the outer path first.

