tried fixing legend, failed