new variable checking for raw_files
formatting and use new variable