167 type 2 diabetic patients , not adequately controlled by metformin , were randomized to vildagliptin 50 mg twice a day or glimepiride 2 mg three times a day for 6 months , in a double blind , randomized clinical trial .