renaming legend