automatic get subtype infomation