needed to solve problem with large number of files