change the data of post