The present application relates to a compound of formula (I)The present application also relates to synthesizing the compound of formula I and treating a patient with the compound of formula I having a neuropsychiatric illnesses such as a depressive disorder, schizophrenia alcohol, nicotine, and morphine withdrawal induced depression and hyperalgesia neuropathic pain caused by anticancerous drugs diabetic neuropathic pain obsessive compulsive disorder alcohol withdrawal syndrome static and dynamic allodynia in diabetic and cancer patients on anticancer therapy and chronic pain therapy.