added print mech to decode