reformat the data
added state datas