decoding max