added functions set_type_link and get_type_link