copy legend