corrected order of dimensions info in write process