finished the data serialiazation