A compound of formula I wherein hetaryl I is a five or six membered heteroaryl group, containing 1 to 3 heteroatoms, selected from O, S or N and which is selected from the group consisting of hetaryl II is a five or six membered heteroaryl group, containing 1 to 3 heteroatoms as defined for hetaryl I above, or is a bicyclic ring system containing 1 to 4 heteroatoms selected from S, O or N, wherein at least one ring is aromatic in nature, and which is selected from the group consisting of R 1 is C 1-7 -alkyl, C 1-7 -alkoxy, C 1-7 -alkyl substituted by halogen, or halogen; R 2 is halogen, C 1-7 -alkyl, C 1-7 -alkoxy, hydroxy, C 1-7 -alkyl substituted by halogen, C 1-7 -alkyl substituted by hydroxy or benzo[1,3]dioxolyl, or is - p -phenyl, optionally substituted by halogen, C 1-7 -alkyl, C 1-7 -alkoxy, S 2 -C 1-7 -alkyl, cyano, nitro, C 1-7 -alkoxy substituted by halogen, dimethylamino, -(CH 2) p -NHC O-C 1-7 - alkyl, or C 1-7 -alkyl substituted by halogen, and R is hydrogen, halogen, hydroxy or C 1-7 -alkoxy, or is cycloalkenyl or cycloalkyl, optionally substituted by hydroxy or C 1-7 -alkyl substituted by halogen, or is a five or six membered heteroaryl group, containing 1 to 3 heteroatoms, selected from O, S or N, as defined above, which is optionally substituted by halogen, C 1-7 -alkyl, C 1-7 -alkoxy or dimethylamino, or is O-phenyl, optionally substituted by halogen, or is heterocycloalkyl, optionally substituted by halogen, hydroxy, C 1-7 -alkyl substituted by halogen or C O-C 1-7 -alkyl; R 3 is hydrogen, C 1-7 -alkyl, cyano or phenyl; R 4 is C 1-7 -alkoxy, C 1-7 alkyl or halogen; p is 0 or 1; n is 0, 1 or 2; if n is 2 then R 4 may be the same or different; m is 0, 1 or 2; if m is 2 then R 1 may be the same or different; o is 0, 1, 2 or 3, if o is 2 or 3 then R 2 may be the same or different; or pharmaceutically active acid addition salts thereof, with the exception of pyridin-4-yl-(3,4,5,6-tetrahydro-2H[1,4']bipyridinyl-4-yl)-amine (5-chloro-6-ethyl-pyrimidin-4-yl)-(1-pyrimidin-2-yl-piperidin-4-yl)-amine 4-pyrimidinamine, 6-chloro-N-[1-[5-(1-methylethyl)-2-pyrimidinyl]-4-piperidinyl]-. and 4-pipetidinamine, N-(1-methyl-1H-pyrazol-3-yl)-1-(4-pyridinyl)- hetaryl I is a five or six membered heteroaryl group, containing 1 to 3 heteroatoms, selected from O, S or N and which is selected from the group consisting of hetaryl II is a five or six membered heteroaryl group, containing 1 to 3 heteroatoms as defined for hetaryl I above, or is a bicyclic ring system containing 1 to 4 heteroatoms selected from S, O or N, wherein at least one ring is aromatic in nature, and which is selected from the group consisting of R 1 is C 1-7 -alkyl, C 1-7 -alkoxy, C 1-7 -alkyl substituted by halogen, or halogen; R 2 is halogen, C 1-7 -alkyl, C 1-7 -alkoxy, hydroxy, C 1-7 -alkyl substituted by halogen, C 1-7 -alkyl substituted by hydroxy or benzo[1,3]dioxolyl, or is - p -phenyl, optionally substituted by halogen, C 1-7 -alkyl, C 1-7 -alkoxy, S 2 -C 1-7 -alkyl, cyano, nitro, C 1-7 -alkoxy substituted by halogen, dimethylamino, -(CH 2) p -NHC O-C 1-7 - alkyl, or C 1-7 -alkyl substituted by halogen, and R is hydrogen, halogen, hydroxy or C 1-7 -alkoxy, or is cycloalkenyl or cycloalkyl, optionally substituted by hydroxy or C 1-7 -alkyl substituted by halogen, or is a five or six membered heteroaryl group, containing 1 to 3 heteroatoms, selected from O, S or N, as defined above, which is optionally substituted by halogen, C 1-7 -alkyl, C 1-7 -alkoxy or dimethylamino, or is O-phenyl, optionally substituted by halogen, or is heterocycloalkyl, optionally substituted by halogen, hydroxy, C 1-7 -alkyl substituted by halogen or C O-C 1-7 -alkyl; R 3 is hydrogen, C 1-7 -alkyl, cyano or phenyl; R 4 is C 1-7 -alkoxy, C 1-7 alkyl or halogen; p is 0 or 1; n is 0, 1 or 2; if n is 2 then R 4 may be the same or different; m is 0, 1 or 2; if m is 2 then R 1 may be the same or different; o is 0, 1, 2 or 3, if o is 2 or 3 then R 2 may be the same or different; R 1 is C 1-7 -alkyl, C 1-7 -alkoxy, C 1-7 -alkyl substituted by halogen, or halogen; R 2 is halogen, C 1-7 -alkyl, C 1-7 -alkoxy, hydroxy, C 1-7 -alkyl substituted by halogen, C 1-7 -alkyl substituted by hydroxy or benzo[1,3]dioxolyl, or is - p -phenyl, optionally substituted by halogen, C 1-7 -alkyl, C 1-7 -alkoxy, S 2 -C 1-7 -alkyl, cyano, nitro, C 1-7 -alkoxy substituted by halogen, dimethylamino, -(CH 2) p -NHC O-C 1-7 - alkyl, or C 1-7 -alkyl substituted by halogen, and R is hydrogen, halogen, hydroxy or C 1-7 -alkoxy, or is cycloalkenyl or cycloalkyl, optionally substituted by hydroxy or C 1-7 -alkyl substituted by halogen, or is a five or six membered heteroaryl group, containing 1 to 3 heteroatoms, selected from O, S or N, as defined above, which is optionally substituted by halogen, C 1-7 -alkyl, C 1-7 -alkoxy or dimethylamino, or is O-phenyl, optionally substituted by halogen, or is heterocycloalkyl, optionally substituted by halogen, hydroxy, C 1-7 -alkyl substituted by halogen or C O-C 1-7 -alkyl; R 3 is hydrogen, C 1-7 -alkyl, cyano or phenyl; R 4 is C 1-7 -alkoxy, C 1-7 alkyl or halogen; p is 0 or 1; n is 0, 1 or 2; if n is 2 then R 4 may be the same or different; m is 0, 1 or 2; if m is 2 then R 1 may be the same or different; o is 0, 1, 2 or 3, if o is 2 or 3 then R 2 may be the same or different; pyridin-4-yl-(3,4,5,6-tetrahydro-2H[1,4']bipyridinyl-4-yl)-amine (5-chloro-6-ethyl-pyrimidin-4-yl)-(1-pyrimidin-2-yl-piperidin-4-yl)-amine 4-pyrimidinamine, 6-chloro-N-[1-[5-(1-methylethyl)-2-pyrimidinyl]-4-piperidinyl]-. and 4-pipetidinamine, N-(1-methyl-1H-pyrazol-3-yl)-1-(4-pyridinyl)-