changed the legend