changes to legend