label decoding