added get_type to structures