changing legend