A compound of formula wherein X is CH or N; R 1 is selected from the group consisting of CH 3, -CH 2 OH and Cl; R 2 is independently of each other selected from the group consisting of H, F, Cl, Br, I, CN, C 1-6 -alkyl, C 3-7 -cycloalkyl, OH, -O-(C 1-6 -alkyl), -O-(C 3-7 -cycloalkyl),-O-(C 1-3 -alkyl)-(C 3-7 -cycloalkyl), -O-heterocyclyl, -O-(C 1-3 -alkyl)-heterocyclyl,-O-aryl, -O-heteroaryl, -S-(C 1-3 -alkyl), -SO-(C 1-3 -alkyl), -SO 2 -(C 1-3 -alkyl), -NH 2, -NH-(C 1-6 -alkyl), -NH-(C 3-6 -cycloalkyl), -NH-(C 1-3 -alkyl)-heterocyclyl, -NH-(C 1 - 6 -alkyl)-C(=O)-NH 2, -C(=O)-NH 2, -C(=O)-NH-(C 1-3 -alkyl), -C(=O)-N(C 1-3 -alkyl) 2, -C(=O)OH, -C(=O)-O-(C 1-4 -alkyl), -C(=O)-(C 1-4 -alkyl), -C 1-3 -alkyl-C(=O)-O-(C 1-4 -alkyl), heterocyclyl, heteroaryl and 5,6-dihydro-4H-pyrrolo[1,2-b]pyrazol-3-yl, wherein each alkyl or cycloalkyl group is optionally independently substituted with one or more substituents selected from the group consisting of F, CN and OH, and wherein each heterocyclyl group is selected from a mono- or spirocyclic 4-7-membered cycloalkyl group, in which 1, 2 or 3 CH 2 -groups are independently of each other replaced by O, S, NH or C=O, and wherein each heterocyclyl group is optionally substituted with 1 or 2 substituents independently of each other selected from F, OH and C 1-3 -alkyl, wherein each aryl group is selected from a group conistsing of phenyl and naphthyl, and wherein each heteroaryl group is selected from a 5-membered aromatic cycle containing 1 or 2 heteroatoms independently selected from N, O and S or from a 6-membered aromatic cycle containing 1 or 2 N, and wherein each aryl or heteroaryl group is optionally substituted with 1 or 2 substituents independently selected from a group conisting of F, CN and C 1-3 -alkyl, which is optionally substituted with one or more F; or, if two groups R 2 are attached to adjacent C atoms of the pyridine or pyrimidine group, they may be linked with each other and together form a -O-CH 2 -O-, -O-CH 2 -CH 2 -O- or -O-CH 2 -CH 2 -CH 2 -O- bridge, in which 1 or 2 H atoms may be replaced with F or C 1-3 -alkyl; and n is 1, 2 or 3; wherein each of the above-mentioned alkyl groups may be substituted with one or more F; or a salt thereof. X is CH or N; R 1 is selected from the group consisting of CH 3, -CH 2 OH and Cl; R 2 is independently of each other selected from the group consisting of H, F, Cl, Br, I, CN, C 1-6 -alkyl, C 3-7 -cycloalkyl, OH, -O-(C 1-6 -alkyl), -O-(C 3-7 -cycloalkyl),-O-(C 1-3 -alkyl)-(C 3-7 -cycloalkyl), -O-heterocyclyl, -O-(C 1-3 -alkyl)-heterocyclyl,-O-aryl, -O-heteroaryl, -S-(C 1-3 -alkyl), -SO-(C 1-3 -alkyl), -SO 2 -(C 1-3 -alkyl), -NH 2, -NH-(C 1-6 -alkyl), -NH-(C 3-6 -cycloalkyl), -NH-(C 1-3 -alkyl)-heterocyclyl, -NH-(C 1 - 6 -alkyl)-C(=O)-NH 2, -C(=O)-NH 2, -C(=O)-NH-(C 1-3 -alkyl), -C(=O)-N(C 1-3 -alkyl) 2, -C(=O)OH, -C(=O)-O-(C 1-4 -alkyl), -C(=O)-(C 1-4 -alkyl), -C 1-3 -alkyl-C(=O)-O-(C 1-4 -alkyl), heterocyclyl, heteroaryl and 5,6-dihydro-4H-pyrrolo[1,2-b]pyrazol-3-yl, wherein each alkyl or cycloalkyl group is optionally independently substituted with one or more substituents selected from the group consisting of F, CN and OH, and wherein each heterocyclyl group is selected from a mono- or spirocyclic 4-7-membered cycloalkyl group, in which 1, 2 or 3 CH 2 -groups are independently of each other replaced by O, S, NH or C=O, and wherein each heterocyclyl group is optionally substituted with 1 or 2 substituents independently of each other selected from F, OH and C 1-3 -alkyl, wherein each aryl group is selected from a group conistsing of phenyl and naphthyl, and wherein each heteroaryl group is selected from a 5-membered aromatic cycle containing 1 or 2 heteroatoms independently selected from N, O and S or from a 6-membered aromatic cycle containing 1 or 2 N, and wherein each aryl or heteroaryl group is optionally substituted with 1 or 2 substituents independently selected from a group conisting of F, CN and C 1-3 -alkyl, which is optionally substituted with one or more F;