The present invention relates to compounds,intermediates used in the preparation of such compounds, processes for the preparation of such compounds of the formula VI and formula VII and such intermediates, pharmaceutical compositions comprising such compounds of the formula VI and such compounds of the formula VII, and the uses of such compounds of the formula VI and such compounds of the formula VII as antidiabetic, pre-antidiabetic, antiobesity and cardioprotective agents.