A compound of formula Wherein A is N or C, B is a group selected from among the group consisting of a 5-7-membered monocyclic heterocyclyl containing 1 or 2 N-atoms, a 6-membered bicyclic heterocyclyl containing 1 N-atom, a 7-11 membered bicyclic heterocyclyl containing 2 N-atoms, a 7-membered bicyclic heterocyclyl containing 1 N-atom and 1 O-atom, a 6-membered monocyclic heterocyclyl containing 1 N-atom and 1 heteroatom selected from the group consisting of O and S, a 9-membered bicyclic heterocyclyl containing 3 heteroatoms, 2 of which are N and the other is O, a 9-membered bicyclic heterocyclyl containing 1 N-atom and 1 S-atom, a 10-membered bicyclic heterocyclyl containing 3 N-atoms, 2 of which are substituted with C 1 - 6 -alkyl, phenyl, and a 9-membered bicyclic heteroaryl containing 3 N-atoms; D is a group selected from among the group consisting of a 9-membered bicyclic heteroaryl containing 2 N-atoms, a 10-membered bicyclic heteroaryl containing 1 N-atom, and benzodioxole; R 1 is selected from among the group consisting of -H, -C 1 - 6 -alkyl, -CF 3, -C 2 - 6 -alkynyl, -O-C 1 - 6 -alkyl and halogen; R 2 is selected from among the group consisting of -H, -C 1 - 6 -alkyl, -C 1 - 6 -alkylene-OH, -C OH, -C O-C 1 - 6 -alkyl and -pyrazolyl-C 1 - 6 -alkyl; R 3 is -H or -C 1 - 6 -alkyl; R 4 is selected from among the group consisting of -H, -C 1 - 3 -alkyl, -NH 2, -NHC 1 - 3 -alkyl and N(C 1 - 3 -alkyl) 2; R 5 is absent or is selected from among the group consisting of -H, -C 1 - 6 -alkyl, -S(O 2)-C 1 - 6 -alkyl, -NH-S(O 2)-C 1 - 6 -alkyl, =O, -C -C 1 - 6 -alkyl, -C H, -C OH, -C NH 2, -C O-C 1 - 6 -alkyl, -NR 5.1 R 5.2, -C 1 - 6 -alkylene-C OH, -S(O 2)-NH 2, -pyrolidin-2-one-1-yl, -tetrazolyl, and a 5-membered heteroaryl with 1 or 2 heteroatoms selected from the group consisting of N and O, substituted with R 5.3; R 5.1 is selected from among the group consisting of -H, -C 1 - 6 -alkyl, -C -C 1 - 6 -alkyl and -C 1 - 6 -alkylene-O-C 1 - 6 -alkyl; R 5.2 is selected from among the group consisting of -H, -C 1 - 6 -alkyl, -C -C 1 - 6 -alkyl, -C 1 - 6 -alkylene-O-C 1 - 6 -alkyl and -C 1 - 6 -alkylene-R 5.3; R 5.3 is selected from among the group consisting of -H, -C 1 - 6 -alkyl and a 6-membered heteroaryl with 1 or 2 heteroatoms selected from a group consisting of N and O; R 6 is absent or is selected from among the group consisting of -H, -C 1 - 6 -alkyl, =O and -C OH; or a salt thereof. A is N or C, B is a group selected from among the group consisting of a 5-7-membered monocyclic heterocyclyl containing 1 or 2 N-atoms, a 6-membered bicyclic heterocyclyl containing 1 N-atom, a 7-11 membered bicyclic heterocyclyl containing 2 N-atoms, a 7-membered bicyclic heterocyclyl containing 1 N-atom and 1 O-atom, a 6-membered monocyclic heterocyclyl containing 1 N-atom and 1 heteroatom selected from the group consisting of O and S, a 9-membered bicyclic heterocyclyl containing 3 heteroatoms, 2 of which are N and the other is O, a 9-membered bicyclic heterocyclyl containing 1 N-atom and 1 S-atom, a 10-membered bicyclic heterocyclyl containing 3 N-atoms, 2 of which are substituted with C 1 - 6 -alkyl, phenyl, and a 9-membered bicyclic heteroaryl containing 3 N-atoms; D is a group selected from among the group consisting of a 9-membered bicyclic heteroaryl containing 2 N-atoms, a 10-membered bicyclic heteroaryl containing 1 N-atom, and benzodioxole; R 1 is selected from among the group consisting of -H, -C 1 - 6 -alkyl, -CF 3, -C 2 - 6 -alkynyl, -O-C 1 - 6 -alkyl and halogen; R 2 is selected from among the group consisting of -H, -C 1 - 6 -alkyl, -C 1 - 6 -alkylene-OH, -C OH, -C O-C 1 - 6 -alkyl and -pyrazolyl-C 1 - 6 -alkyl; R 3 is -H or -C 1 - 6 -alkyl; R 4 is selected from among the group consisting of -H, -C 1 - 3 -alkyl, -NH 2, -NHC 1 - 3 -alkyl and N(C 1 - 3 -alkyl) 2; R 5 is absent or is selected from among the group consisting of -H, -C 1 - 6 -alkyl, -S(O 2)-C 1 - 6 -alkyl, -NH-S(O 2)-C 1 - 6 -alkyl, =O, -C -C 1 - 6 -alkyl, -C H, -C OH, -C NH 2, -C O-C 1 - 6 -alkyl, -NR 5.1 R 5.2, -C 1 - 6 -alkylene-C OH, -S(O 2)-NH 2, -pyrolidin-2-one-1-yl, -tetrazolyl, and a 5-membered heteroaryl with 1 or 2 heteroatoms selected from the group consisting of N and O, substituted with R 5.3; R 5.1 is selected from among the group consisting of -H, -C 1 - 6 -alkyl, -C -C 1 - 6 -alkyl and -C 1 - 6 -alkylene-O-C 1 - 6 -alkyl; R 5.2 is selected from among the group consisting of -H, -C 1 - 6 -alkyl, -C -C 1 - 6 -alkyl, -C 1 - 6 -alkylene-O-C 1 - 6 -alkyl and -C 1 - 6 -alkylene-R 5.3; R 5.3 is selected from among the group consisting of -H, -C 1 - 6 -alkyl and a 6-membered heteroaryl with 1 or 2 heteroatoms selected from a group consisting of N and O; R 6 is absent or is selected from among the group consisting of -H, -C 1 - 6 -alkyl, =O and -C OH; or a salt thereof.