main legend finished