paths check for duplicates