fix up data formatting