legend will understand this pattern