adding key legend