The present invention relates to a compound of formula I,, wherein R1is hydrogen, lower alkyl, lower alkyl substituted by halogen, halogen, lower alkoxy or lower alkoxy substituted by halogen; R1may be the same or different, if n = 2 or 3; n is 1, 2 or 3; m is 1, 2 or 3; Ar is a five or six membered heteroaryl group, selected from; wherein R2is hydrogen, lower alkyl, lower alkyl substituted by halogen, halogen or lower alkoxy; R3is hydrogen or halogen; -()m- is -(CH2)m- or to pharmaceutically active acid addition salts thereof. The compounds may be used for the treatment of Alzheimer's disease, cerebral amyloid angiopathy, hereditary cerebral hemorrhage with amyloidosis, Dutch-type (HCHWA-D), multi-infarct dementia, dementia pugilistica or Down syndrome.本發明係關於一種式I化合物,, 其中 R1為氫、低碳烷基、經鹵素取代之低碳烷基、鹵素、低碳烷氧基或經鹵素取代之低碳烷氧基; 若n=2或3,則R1可相同或不同; n 為1、2或3; m 為1、2或3; Ar 為五員或六員雜芳基,其選自; 其中 R2為氫、低碳烷基、經鹵素取代之低碳烷基、鹵素或低碳烷氧基; R3為氫或鹵素; -()m- 為-(CH2)m- 或係關於其醫藥活性酸加成鹽。 該等化合物可用於治療阿滋海默症、澱粉樣腦血管病變、出現澱粉樣變性之遺傳性腦出血,荷蘭型(HCHWA-D)、多發性梗塞失智、拳擊手型失智症或唐氏症候群。