runs for 5000 files