simplify decoding conditional