change stats.json into stats.data