moved text and repositioned the legend