takes array of file names as parameter