record types decoding