a way to work with list of files