made changes to legend