index is now in the output file