finished get_type.