updated matrix data order