Substituted cyclopropyl compounds of the formula I and the pharmaceutically acceptable salts thereof are disclosed as useful for treating or preventing type 2 diabetes and similar conditions. The compounds are useful as agonists of the g-protein coupled receptor GPR-119. Pharmaceutical compositions and methods of treatment are also included. Another aspect of the invention that is of interest relates to compounds of formula 1a.