add legends