recalculate json files