filenames based on function rather than assignment