The present invention provides a compound of formula (I) wherein R1 is a compound represented by formulas (a), (b), (c), (d), (e), (f), (g), (h), (i ), (J) is a 1 or 2 membered heteroaryl group, R2 is hydrogen or halogen, or R1 and R2 together with the carbon atom to which they are attached And may form the following rings: formulas (k), (l), (m), (n), (o), R3 is hydrogen, halogen or lower alkyl, and n is 1 Or R4 is phenyl optionally substituted with 1 or 2 substituents selected from halogen or cyano, or pyridinyl optionally substituted with halogen, or -NH-C which is tetrahydropyran or optionally substituted with halogen O) -phenyl, R5 is hydrogen or halogen, R6-R13 is phenyl optionally substituted with halogen, and R14 is -NH-C (O)-substituted with halogen. R15 is phenyl, lower alkyl substituted with hydrogen or halogen, or halogen, R16 is hydrogen or lower alkoxy, and R17 is lower alkyl substituted with lower alkoxy or halogen. Or optionally pharmaceutically suitable acid addition salts thereof, all racemic mixtures of compounds of formula I, all their corresponding enantiomers and / or optics To isomers as well as all tautomers. The compounds of formula I have good affinity for trace amine associated receptors (TAAR), in particular TAAR1. The compounds of formula I have good affinity for trace amine associated receptors (TAAR), in particular TAAR1. The compounds are used for depression, anxiety disorder, bipolar disorder, attention deficit hyperactivity disorder (ADHD), stress related disorders, mental disorders such as schizophrenia, neurological disorders such as Parkinson's disease, neurodegenerative disorders such as Alzheimer's disease, epilepsy, migraine, hypertension, drug dependence, and metabolic disorders such as eating disorders, diabetes, diabetic complications, obesity, dyslipidemia, disorders of energy expenditure and assimilation, disorders of body temperature homeostasis and function It can be used for the treatment of dysfunction, sleep and circ