adjust data dimension order