Change structure of data