black box decoding