got legend working.