trying with some tables for the legend