A compound of the formula wherein B 1 is N and B 2 is CR 9 and B 3 is CR 10, or B 1 is CR 8 and B 2 is N and B 3 is CR 10, or B 1 is CR 8 and B 2 is CR 9 and B 3 is N; R 1 is selected from the group consisting of phenyl, said phenyl being unsubstituted or substituted with one, two or three groups selected from the group consisting of C 1-7 -alkyl, C 1-7 -cycloalkyl, halogen, hydroxy, C 1-7 -alkoxy, halogen-C 1-7 -alkyl, halogen-C 1-7 -alkoxy, cycloalkyl-C 1-7 -alkoxy, cyano, cyano-C 1-7 -alkoxy, hydroxy-C 1-7 -alkyl, hydroxy-C 1-7 -alkoxy, C 1-7 -alkoxy-C 1-7 -alkyl, amino, C 1-7 -alkylamino, di-C 1-7 -alkylamino and phenyl-C 1-7 -alkoxy, and heteroaryl, said heteroaryl being unsubstituted or substituted with one, two or three groups selected from the group consisting of C 1-7 -alkyl, C 1-7 -cycloalkyl, halogen, hydroxy, C 1-7 -alkoxy, halogen-C 1-7 -alkyl, halogen-C 1-7 -alkoxy and cycloalkyl-C 1-7 -alkoxy, R 2 is selected from the group consisting of C 1-7 -alkyl, halogen-C 1-7 -alkyl, aminocarbonyl-C 1-7 -alkyl and C 1-7 -alkylsulfonyl-C 1-7 -alkyl; R 3 and R 7 are independently selected from the group consisting of hydrogen, halogen, C 1-7 -alkyl and C 1-7 -alkoxy; R 4 and R 6 are independently from each other selected from the group consisting of hydrogen, C 1-7 -alkyl, C 1-7 -cycloalkyl, halogen, halogen-C 1-7 -alkyl, halogen-C 1-7 -alkoxy, hydroxy, hydroxy-C 1-7 -alkyl, C 1-7 -alkoxy, cyano, carboxyl, C 1-7 -alkoxycarbonyl, C 1-7 -alkoxycarbonyl-C 1-7 -alkyl, C 1-7 -alkylsulfonyl, hydroxy-C 1-7 -alkylsulfonyl, C 1-7 -alkoxy-C 1-7 -alkylsulfonyl, carboxyl-C 1-7 -alkylsulfonyl, C 1-7 -alkoxycarbonyl-C 1-7 -alkylsulfonyl, heterocyclylsulfonyl, aminosulfonyl, C 1-7 -alkylaminosulfonyl, di-C 1-7 -alkyl-aminosulfonyl, amino, C 1-7 -alkylamino, di-C 1-7 -alkylamino, nitro, unsubstituted heterocyclyl or heterocyclyl substituted with one or two groups selected from halogen, oxo and C 1-7 -alkyl; R 5 is selected from the group consisting of hydrogen, C 1-7 -alkyl, halogen, halogen-C 1-7 -alkyl and C 1-7 -alkoxy; and R 8, R 9 and R 10 are independently selected from the group consisting of hydrogen, C 1-7 -alkyl, halogen and halogen-C 1-7 -alkyl; or pharmaceutically acceptable salts thereof. B 1 is N and B 2 is CR 9 and B 3 is CR 10, or B 1 is CR 8 and B 2 is N and B 3 is CR 10, or B 1 is CR 8 and B 2 is CR 9 and B 3 is N; B 1 is CR 8 and B 2 is N and B 3 is CR 10, or B 1 is CR 8 and B 2 is CR 9 and B 3 is N; R 1 is selected from the group consisting of phenyl, said phenyl being unsubstituted or substituted with one, two or three groups selected from the group consisting of C 1-7 -alkyl, C 1-7 -cycloalkyl, halogen, hydroxy, C 1-7 -alkoxy, halogen-C 1-7 -alkyl, halogen-C 1-7 -alkoxy, cycloalkyl-C 1-7 -alkoxy, cyano, cyano-C 1-7 -alkoxy, hydroxy-C 1-7 -alkyl, hydroxy-C 1-7 -alkoxy, C 1-7 -alkoxy-C 1-7 -alkyl, amino, C 1-7 -alkylamino, di-C 1-7 -alkylamino and phenyl-C 1-7 -alkoxy, and heteroaryl, said heteroaryl being unsubstituted or substituted with one, two or three groups selected from the group consisting of C 1-7 -alkyl, C 1-7 -cycloalkyl, halogen, hydroxy, C 1-7 -alkoxy, halogen-C 1-7 -alkyl, halogen-C 1-7 -alkoxy and cycloalkyl-C 1-7 -alkoxy, phenyl, said phenyl being unsubstituted or substituted with one, two or three groups selected from the group consisting of C 1-7 -alkyl, C 1-7 -cycloalkyl, halogen, hydroxy, C 1-7 -alkoxy, halogen-C 1-7 -alkyl, halogen-C 1-7 -alkoxy, cycloalkyl-C 1-7 -alkoxy, cyano, cyano-C 1-7 -alkoxy, hydroxy-C 1-7 -alkyl, hydroxy-C 1-7 -alkoxy, C 1-7 -alkoxy-C 1-7 -alkyl, amino, C 1-7 -alkylamino, di-C 1-7 -alkylamino and phenyl-C 1-7 -alkoxy, and heteroaryl, said heteroaryl being unsubstituted or substituted with one, two or three groups selected from the group consisting of C 1-7 -alkyl, C 1-7 -cycloalkyl, halogen, hydroxy, C 1-7 -alkoxy, halogen-C 1-7 -alkyl, halogen-C 1-7 -alkoxy and cycloalkyl-C 1-7 -alkoxy, R 2 is selected from the group consisting of C 1-7 -alkyl, halogen-C 1-7 -alkyl, aminocarbonyl-C 1-7 -alkyl and C 1-7 -alkylsulfonyl-C 1-7 -alkyl; R 3 and R 7 are independently selected from the group consisting of hydrogen, halogen, C 1-7 -alkyl and C 1-7 -alkoxy; R 4 and R 6 are independently from each other selected from the group consisting of hydrogen, C 1-7 -alkyl, C 1-7 -cycloalkyl, halogen, halogen-C 1-7 -alkyl, halogen-C 1-7 -alkoxy, hydroxy, hydroxy-C 1-7 -alkyl, C 1-7 -alkoxy, cyano, carboxyl, C 1-7 -alkoxycarbonyl, C 1-7 -alkoxycarbonyl-C 1-7 -alkyl, C 1-7 -alkylsulfonyl, hydroxy-C 1-7 -alkylsulfonyl, C 1-7 -alkoxy-C 1-7 -alkylsulfonyl, carboxyl-C 1-7 -alkylsulfonyl, C 1-7 -alkoxycarbonyl-C 1-7 -alkylsulfonyl, heterocyclylsulfonyl, aminosulfonyl, C 1-7 -alkylaminosulfonyl, di-C 1-7 -alkyl-aminosulfonyl, amino, C 1-7 -alkylamino, di-C 1-7 -alkylamino, nitro, unsubstituted heterocyclyl or heterocyclyl substituted with one or two groups selected from halogen, oxo and C 1-7 -alkyl; R 5 is selected from the group consisting of hydrogen, C 1-7 -alkyl, halogen, halogen-C 1-7 -alkyl and C 1-7 -alkoxy; and R 8, R 9 and R 10 are independently selected from the group consisting of hydrogen, C 1-7 -alkyl, halogen and halogen-C 1-7 -alkyl;