refactoring: renamed chunkIndex => chunkPosition