fix data storing format