fix formatting data