data reformatting