fixed files function to output multiple files and in an ordered list