using chunk index instead of number