fix formatData to the before design