cleaning up data formats