A compound of formula I wherein: B is selected from B 1, B 2 and B 3; B 1 is a 5-membered heteroaryl comprising 2 nitrogen atoms in the ring, wherein each 5-membered heteroaryl is unsubstituted or substituted with one or more groups independently selected from halogen, CN, (C 1-6)alkyl, (C 1-6)haloalkyl, O(C 1-6)alkyl, and O(C 1-6)haloalkyl; B 2 is phenyl, wherein each phenyl is unsubstituted or substituted with one or more groups independently selected from halogen, CN, (C 1-6)alkyl, (C 1-6)haloalkyl, O(C 1-6)alkyl, and O(C 1-6)haloalkyl; B 3 is 6-membered heteroaryl, wherein each 6-membered heteroaryl is unsubstituted or substituted with one or more groups independently selected from halogen, CN, (C 1-6)alkyl, (C 1-6)haloalkyl, O(C 1-6)alkyl, O(C 1-6)haloalkyl, 5 or 6-membered heteroaryl, (C 3-7)cycloalkyl, and 4, 5, 6, or 7-membered heterocyclyl, wherein any of the 5 or 6-membered heteroaryl, (C 3-7)cycloalkyl, or 4, 5, 6, or 7-membered heterocyclyl groups is unsubstituted or substituted with one or more groups independently selected from halogen, CN, (C 1-6)alkyl, (C 1-6)haloalkyl, O(C 1-6)alkyl, and O(C 1-6)haloalkyl; R 1 is R 2 is selected from (C 1-6)alkyl, (C 1-6)haloalkyl, (C 1-7)cycloalkyl, and (C 1-6)alkyl-(C 3- 7)cycloalkyl, wherein (C 1-6)alkyl is optionally substituted with O(C 1 -C 6)alkyl; R 3 is H or (C 1-6)alkyl or R 2 and R 3 together with the atoms to which they are attached form a (C 3)cycloalkyl; R 4 is selected from H, F and CN; R 5 is H or (C 1-6)alkyl, or one of R 2 and R 3 and one of R 4 and R 5 together with the atoms to which they are attached form a (C 3)cycloalkyl; R 6 is phenyl, (C 3-7)cycloalkyl, 5 or 6-membered heteroaryl, or 4, 5, 6 or 7-membered heterocycle, wherein any phenyl, (C 3-7)cycloalkyl, 5 or 6-membered heteroaryl, or 4, 5, 6 or 7-membered heterocycle of R 6 is optionally substituted with one or more groups independently selected from halogen, CN, SF 5, (C 1-6)alkyl, (C 1-6)haloatkyl, O alkyl and O(C 1-6)haloalkyl, or R 6 is O-CH 2 -R 7; R 7 is (C 1-6)alkyl, 4, 5, 6, or 7-membered heterocycle, (C 3-7)cycloalkyl, or 6-membered heteroaryl, wherein any (C 1-6)alkyl, 4, 5, 6, or 7-membered heterocycle, (C 3-7)cycloalkyl, or 6-membered heteroaryl is optionally substituted with one or more groups independently selected from halogen, CN, (C 1-6)alkyl, (C 1-6)haloalkyl, O(C 1-6)alkyl, (C 3-7)cycloalkyl, and O(C 1-6)haloalkyl; or a pharmaceutically acceptable salt thereof. B is selected from B 1, B 2 and B 3; B 1 is a 5-membered heteroaryl comprising 2 nitrogen atoms in the ring, wherein each 5-membered heteroaryl is unsubstituted or substituted with one or more groups independently selected from halogen, CN, (C 1-6)alkyl, (C 1-6)haloalkyl, O(C 1-6)alkyl, and O(C 1-6)haloalkyl; B 2 is phenyl, wherein each phenyl is unsubstituted or substituted with one or more groups independently selected from halogen, CN, (C 1-6)alkyl, (C 1-6)haloalkyl, O(C 1-6)alkyl, and O(C 1-6)haloalkyl; B 3 is 6-membered heteroaryl, wherein each 6-membered heteroaryl is unsubstituted or substituted with one or more groups independently selected from halogen, CN, (C 1-6)alkyl, (C 1-6)haloalkyl, O(C 1-6)alkyl, O(C 1-6)haloalkyl, 5 or 6-membered heteroaryl, (C 3-7)cycloalkyl, and 4, 5, 6, or 7-membered heterocyclyl, wherein any of the 5 or 6-membered heteroaryl, (C 3-7)cycloalkyl, or 4, 5, 6, or 7-membered heterocyclyl groups is unsubstituted or substituted with one or more groups independently selected from halogen, CN, (C 1-6)alkyl, (C 1-6)haloalkyl, O(C 1-6)alkyl, and O(C 1-6)haloalkyl; R 1 is R 2 is selected from (C 1-6)alkyl, (C 1-6)haloalkyl, (C 1-7)cycloalkyl, and (C 1-6)alkyl-(C 3- 7)cycloalkyl, wherein (C 1-6)alkyl is optionally substituted with O(C 1 -C 6)alkyl; R 3 is H or (C 1-6)alkyl or R 2 and R 3 together with the atoms to which they are attached form a (C 3)cycloalkyl; R 4 is selected from H, F and CN; R 5 is H or (C 1-6)alkyl, or one of R 2 and R 3 and one of R 4 and R 5 together with the atoms to which they are attached form a (C 3)cycloalkyl; R 6 is phenyl, (C 3-7)cycloalkyl, 5 or 6-membered heteroaryl, or 4, 5, 6 or 7-membered heterocycle, wherein any phenyl, (C 3-7)cycloalkyl, 5 or 6-membered heteroaryl, or 4, 5, 6 or 7-membered heterocycle of R 6 is optionally substituted with one or more groups independently selected from halogen, CN, SF 5, (C 1-6)alkyl, (C 1-6)haloatkyl, O alkyl and O(C 1-6)haloalkyl, or R 6 is O-CH 2 -R 7; R 7 is (C 1-6)alkyl, 4, 5, 6, or 7-membered heterocycle, (C 3-7)cycloalkyl, or 6-membered heteroaryl, wherein any (C 1-6)alkyl, 4, 5, 6, or 7-membered heterocycle, (C 3-7)cycloalkyl, or 6-membered heteroaryl is optionally substituted with one or more groups independently selected from halogen, CN, (C 1-6)alkyl, (C 1-6)haloalkyl, O(C 1-6)alkyl, (C 3-7)cycloalkyl, and O(C 1-6)haloalkyl; or a pharmaceutically acceptable salt thereof.