Ladies with PCOS

K so I have PCOS and I was diagnosed two years ago, and they put me on metformin, but the metformin upsets my stomach really bad and ever since I got on metformin, I have gained a lot of weight even though its supposed to help you lose weight and I just don't know what to do anymore, its so aggrivating.