The invention relates to compounds of formula wherein R1 is phenyl or pyridinyl, optionally substituted by halogen, lower alkyl, lower alkoxy, lower alkyl substituted by halogen and lower alkoxy substituted by halogen; X1 is —N═ or CH; X2 is CR2 or ═N—; X3 is —N═ or CH; with the proviso that only two of X1, X2 or X3 are nitrogen; wherein is a triazole group, selected from R2 is hydrogen or lower alkyl; Z is a bond, —O— or —CH2—; or to pharmaceutically suitable acid addition salts thereof It has now been found that the compounds of formulas I have a good affinity to the trace amine associated receptors (TAARs), especially for TAAR1. The compounds may be used for the treatment of depression, anxiety disorders, bipolar disorder, attention deficit hyperactivity disorder (ADHD), stress-related disorders, psychotic disorders such as schizophrenia, neurological diseases such as Parkinson's disease, neurodegenerative disorders such as Alzheimer's disease, epilepsy, migraine, hypertension, substance abuse and metabolic disorders such as eating disorders, diabetes, diabetic complications, obesity, dyslipidemia, disorders of energy consumption and assimilation, disorders and malfunction of body temperature homeostasis, disorders of sleep and circadian rhythm, and cardiovascular disorders.