Improved the legend