filling in decoding for the different jmc types