files are array ref