tables get legend