hcs's update for IMA decoder