legend for selected