fixed the file numbering part