correctly set the file name for different summaries