tweaking legend