added a legend