type embedding