update directories to store the statistics