changing data structure of formatted data