add legend in upper left corner