The invention provides compounds, pharmaceutical compositions comprising suchcompounds and methods of using such compounds to treat or prevent diseases ordisordersassociated with the activity of GPR119. Compounds of this invention are ofgeneral Formula Ias follows.(see formula I)