refactor decoding_report