renamed pathPieces to pathChunks