A compound of the formula and pharmaceutically acceptable solvates, N-oxides, and salts thereof, wherein R 1 is halogen, alkyl, alkoxy, alkylthio, alkenyl, alkylcarbonyl, alkoxycarbonyl, alkynyl, alkylthioalkyl, SF 5, thiophenyl, imidazolyl, phenyl, furanyl wherein each of the carbon-containing radicals optionally is substituted by one or more halogen atoms, R 2 is hydrogen, halogen,alkyl or alkoxy, wherein each of the carbon containing radicals optionally is substituted by one or more halogen atoms, preferably fluorine atoms, R 3 is hydrogen, halogen,or alkyl wherein each of the carbon atoms of the alkyl is optionally substituted by one or more halogen atoms, R 4 is hydrogen or alkyl, R 5 is hydrogen or alkyl, R 6 is hydrogen, alkyl, phenyl or benzyl, R 7 is hydrogen or alkyl, or R 6 is joined together with R 4 to form a C 1 -C 3 -alkylene group and R 7 is joined together with R 5 to form a C 1 -C 3 -alkylene group, wherein one or both of said C 1 -C 3 -alkylene groups are optionially substituted by one or more C 1 -C 3 -alkyl radicals, n is 1-3, X is CO, CS or SO 2, B and D is N A is a heteroaryl, chosen from the group consisting of a 6 membered aromate according to formula II and a 5 membered heteroaromate according to formula III, wherein in formula II: Y 1, Y 2, Y 4 and Y 5 may be N or CR 9, wherein one or two of Y 1, Y 2, Y 4 and Y 5 are N, Y 3 is CR 10, R 9 is hydrogen, alkyl, alkoxy, alkylthio, halogen, nitrilo, nitro, alkylsulfonyl, alkylcarbonyl, alkoxycarbonyl, aminocarbonyl, alkylaminocarbonyl, dialkylaminocarbonyl, amino, wherein each of the carbon-containing radicals optionally is substituted by one or more halogen atoms, R 10 is hydrogen, alkyl, alkoxy, alkylthio, halogen, nitrilo, nitro, alkylsulfonyl, alkylcarbonyl, alkoxycarbonyl, alkylaminocarbonyl, dialkylaminocarbonyl, wherein each of the carbon-containing radicals optionally is substituted by one or two halogen atoms, Y 1 and Y 2 may form a ring system or Y 2 and Y 3 may form a ring system or Y 3 and Y 4 may form a ring system or Y 4 and Y 5 may form a ring system, and in formula III: Y 6 is N or C, Y 7, Y 8, and Y 10 is CR 11, NR 12, O or S, wherein at least one and at maximum three of Y 7, Y 8, and Y 10 is NR 12, O or S, Y 9 is CR 11, R 11 is hydrogen, alkyl, nitrilo, alkoxycarbonyl, aminocarbonyl, alkylsulfonyl, amino, wherein each of the carbon-containing radicals optionally is substituted by one or more halogen atoms, R 12 is missing. Y 7 and Y 8 may form a ring system or Y 8 and Y 9 may form a ring system. R 1 is halogen, alkyl, alkoxy, alkylthio, alkenyl, alkylcarbonyl, alkoxycarbonyl, alkynyl, alkylthioalkyl, SF 5, thiophenyl, imidazolyl, phenyl, furanyl wherein each of the carbon-containing radicals optionally is substituted by one or more halogen atoms, R 2 is hydrogen, halogen,alkyl or alkoxy, wherein each of the carbon containing radicals optionally is substituted by one or more halogen atoms, preferably fluorine atoms, R 3 is hydrogen, halogen,or alkyl wherein each of the carbon atoms of the alkyl is optionally substituted by one or more halogen atoms, R 4 is hydrogen or alkyl, R 5 is hydrogen or alkyl, R 6 is hydrogen, alkyl, phenyl or benzyl, R 7 is hydrogen or alkyl, or R 6 is joined together with R 4 to form a C 1 -C 3 -alkylene group and R 7 is joined together with R 5 to form a C 1 -C 3 -alkylene group, wherein one or both of said C 1 -C 3 -alkylene groups are optionially substituted by one or more C 1 -C 3 -alkyl radicals, n is 1-3, X is CO, CS or SO 2, B and D is N A is a heteroaryl, chosen from the group consisting of a 6 membered aromate according to formula II and a 5 membered heteroaromate according to formula III, Y 1, Y 2, Y 4 and Y 5 may be N or CR 9, wherein one or two of Y 1, Y 2, Y 4 and Y 5 are N, Y 3 is CR 10, R 9 is hydrogen, alkyl, alkoxy, alkylthio, halogen, nitrilo, nitro, alkylsulfonyl, alkylcarbonyl, alkoxycarbonyl, aminocarbonyl, alkylaminocarbonyl, dialkylaminocarbonyl, amino, wherein each of the carbon-containing radicals optionally is substituted by one or more halogen atoms, R 10 is hydrogen, alkyl, alkoxy, alkylthio, halogen, nitrilo, nitro, alkylsulfonyl, alkylcarbonyl, alkoxycarbonyl, alkylaminocarbonyl, dialkylaminocarbonyl, wherein each of the carbon-containing radicals optionally is substituted by one or two halogen atoms, Y 1 and Y 2 may form a ring system or Y 2 and Y 3 may form a ring system or Y 3 and Y 4 may form a ring system or Y 4 and Y 5 may form a ring system, Y 6 is N or C, Y 7, Y 8, and Y 10 is CR 11, NR 12, O or S, wherein at least one and at maximum three of Y 7, Y 8, and Y 10 is NR 12, O or S, Y 9 is CR 11, R 11 is hydrogen, alkyl, nitrilo, alkoxycarbonyl, aminocarbonyl, alkylsulfonyl, amino, wherein each of the carbon-containing radicals optionally is substituted by one or more halogen atoms, R 12 is missing. Y 7 and Y 8 may form a ring system or Y 8 and Y 9 may form a ring system.