The forEach function passes the index as the second parameter, so you don't need the prodPathsIndex variable