This disclosure is directed to compound having the formula (A) and a method of treatment using the compound. Compared with metformin, the disclosed compound has the same clinic curative effect, such as lowering blood sugar, curing poly-cystic ovary syndrome (PCOS), losing weight and so on, without resulting in the increase of homocysteine concentration, even with a little decrease of homocysteine concentration in some cases.