reworked dimension order to fit julia dimension