add named/unnamed type