changed file array range to []