add function 'format_filenames'