modify the legend