This invention is directed to compounds (I) 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 earner. The present invention also provides processes 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 also provides a method of treating a subject suffering from a drug addiction 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.