matching legend type