Disclosed is a compound having a structure represented by a formula (i) e.g. N-(4-fluorophenyl)-4-(2-methylpiperidine-1-carbonyl)benzamide the substituents are defined in the specification or a pharmaceutically acceptable salt or N-oxide thereof, dementia, delirium, anmestic disorders, age-related cognitive decline, schizophrenia, psychosis including schizophrenia, schizophreniform disorder, schizoaffective disorder, delusional disorder, brief psychotic disorder, substance-related disorder, movement disorders, epilepsy, chorea, pain, migraine, diabetes, dystonia, obesity, eating disorders, brain edema, sleep disorder, narcolepsy, anxiety, affective disorder, panic attacks, unipolar depression, bipolar disorder, and psychotic depression.