added the legend