record type mapping