use list of files for both arguments