adding code to make a separate legend figure