for legend