shorten the legend