rearrange main data json file