legend work