changing the data layout