Modified the legend