added array of values per file and updated value for output