done for all the files