New data files and selecting of the legend working