The present invention relates to compounds of formulawherein hetaryl, R1, R2, R3and n are as defined in the specification; or to pharmaceutically active acid addition salts thereof, to racemic mixtures or to its corresponding enantiomers or optical isomers or stereoisomers 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.本發明係關於一種下式化合物其中雜芳基、R1、R2、R3及n如說明書中所定義; 或關於其醫藥活性酸加成鹽,關於外消旋混合物或關於其對應之對映異構體或其光學異構體或立體異構體。 該等化合物可用於治療阿茲海默氏病(Alzheimer’s disease)、腦澱粉樣血管病、荷蘭型遺傳性澱粉樣變腦出血(HCHWA-D)、多發性梗塞性癡呆、拳擊員癡呆或唐氏症候群(Down syndrome)。