simplify decoding