pulled bits from legend.r