The present invention relates to a compound of formula I, wherein R1 is selected from the group consisting of hydrogen and lower alkyl; each R2 is independently selected from the group consisting of hydrogen and lower alkyl; each R3 is independently selected from the group consisting of hydrogen, lower alkyl, lower alkoxy, phenyloxy, benzyloxy, halogen and lower alkyl substituted by halogen; R4 is selected from the group consisting of hydrogen and lower alkyl; X is selected from the group consisting of —CH2—, —CH— and —O—; Y is selected from the group consisting of —CH2—, —CH2CH2—, —CH— and a bond; with the proviso that, when X is —O—, Y is —CH2—; Z is selected from the group consisting of —CH2— and —CH—; m is 1 or 2; and n is 1 or 2. The invention relates also to a pharmaceutically-acceptable acid-addition salt of such a compound, methods for making the compound, and a composition comprising such a compound. It has been found that the compounds of formula I have a good affinity to the trace amine associated receptors (TAARs), especially for TAAR1.