corrected JP4, where MATRIX_WR and MATRIX_DATA were reveresed