This invention is directed to compounds, which are PDE10A enzyme inhibitors. The invention provides a pharmaceutical composition comprising a therapeutically effective amount of a compound of the invention and a pharmaceutically acceptable carrier. The present invention also provides a process for the preparation of the compounds of formula I. The present invention further provides a method of treating a subject suffering from a neurodegenerative disorder comprising administering to the subject a therapeutically effective amount of a compound of formula I. The present invention further provides a method of treating a subject suffering from a psychiatric disorder comprising administering to the subject a therapeutically effective amount of a compound of formula I.