added box order to row order transformation