legend modification