The present Invention relates to compounds of the formula: Where R is a heteroaryl Group: hetarilo five or six links, which contains 1 to 3 heteroatoms selected from S and N; hetarilo II is a heteroaryl Group of six links, which contains 1 to 3 heteroatoms selected from S And N, or is a member of two cyclic System containing heteroatoms selected from 1 to 4 s and NThe at least one ring is Aromatic in nature; r1 is alkyl alkoxy Lower, Lower, Lower alkyl substituted by Halogen Halogen or lower alkyl; R2 is alkyl substituted by Halogen, Lower alkoxy, halogen, Lower alkyl, cycloalkyl substituted by Lower Lower alkyl or substituted by Halogen or alkyl substituted by Hydroxy is lower, or it is furilo,Or or - Benzyl - (CH2) P -, phenyl optionally substituted by Halogen, alkoxy alkyl substituted by Halogen, Lower, Lower, Lower alkyl or cyano; R3 is Hydrogen or lower alkyl; and is - (CH2) n -, - ch2och2 - ch2s CH2O -, -, -, - ch2sch2 - and is linked to two of the carbon Atoms of the Nillo,The Union is made with carbon Atoms "a " and "B " of the Ring carbon Atoms or with the "C " and "D " P is the number of the Ring; M is 0 OR 1; The Number 0, 1 or 2; IF m is 2, then R1 may be the same or different The Number n is 2 or 3; "or " is Number 0, 1 or 2 if "or " is 2, then R2 P Can be the same or different, or their acid Addition salts of pharmaceutically active.The compounds of formula I are modulators of beta Amyloid and therefore may be useful for the Treatment or prevention of a disease associated with the deposition of beta Amyloid in the Brain, including Alzheimer's disease and other diseases, such as angiopat The cerebral Amyloid, the Hereditary Cerebral hemorrhage with amyloidosis of Dutch (hchwa - d)Multi Infarct Dementia, pugilistic Dementia and down's Syndrome.Даний винахід стосується сполук формули, Iде гетарил І є п'яти- чи шестичленною гетероарильною групою, що містить 1-3 гетероатоми, вибрані з S чи N; гетарил II є шестичленною гетероарильною групою, що містить