complete fix at get_type()