add legend_by