tweaks to the legend