add support of subtype in variable matching