finish type mapping