update to run on several files