A compound of formula or a pharmaceutically acceptable salt thereof, wherein: A is selected from wherein " " denotes the point of attachment to B; B is selected from and wherein "*" indicates the point of attachment to R 5 and "**" indicates the point of attachment to ring A; R 1 is selected from hydrogen, amino, -CO 2 H, cyclopropyl, difluoromethyl, ethyl, halo, hydroxymethyl, methoxy, methoxymethyl, methyl, -NHC CH 3,-NHCO 2 CH 3, trifluoromethoxy, trifluoromethyl, wherein R a is selected from hydrogen, halo and methyl; R 2 is selected from hydrogen, cyano, -CH 2 OH, halo, and methyl; R 3 is selected from hydrogen, cyano, cyclopropyl, difluoromethyl, fluoromethyl, halo, hydroxymethyl, methoxy, methyl, methylsulfonyl, trifluoromethoxy, trifluoromethyl, -CH 2 N(CH 3) 2, and a five-membered aromatic ring containing one, two, or three heteroatoms selected from nitrogen, oxygen, and sulfur; R 4 is selected from hydrogen, halo, and methyl; R 5 is selected from and and R 6 is selected from hydrogen, ethyl, fluoromethyl, difluoromethyl, methyl, and trifluoromethyl; provided that it is not a compound of formula (I') or a pharmaceutically acceptable salt thereof, wherein: A is selected from, and wherein " " denotes the point of attachment to B; B is selected from wherein "*" indicates the point of attachment to R5 and "**" indicates the point of attachment to ring A; R 1 is selected from hydrogen, amino, -CO 2 H, difluoromethyl, ethyl, halo, hydroxymethyl, methoxy, methyl, -NHC CH 3, -NHCO 2 CH 3, trifluoromethoxy, and trifluoromethyl; R 2 is selected from hydrogen, cyano, -CH 2 OH, halo, and methyl; R 3 is selected from hydrogen, cyano, cyclopropyl, difluoromethyl, halo, hydroxymethyl, methoxy, methyl, methylsulfonyl, trifluoromethoxy, trifluoromethyl, -CH 2 N(CH 3) 2, and a five-membered aromatic ring containing one, two, or three heteroatoms selected from nitrogen, oxygen, and sulfur; R 4 is selected from hydrogen, halo, and methyl; R 5 is selected from R 6 is selected from hydrogen, ethyl, fluoromethyl, difluoromethyl, methyl, and trifluoromethyl; and R 7 is methyl. A is selected from wherein " " denotes the point of attachment to B; B is selected from and wherein "*" indicates the point of attachment to R 5 and "**" indicates the point of attachment to ring A; R 1 is selected from hydrogen, amino, -CO 2 H, cyclopropyl, difluoromethyl, ethyl, halo, hydroxymethyl, methoxy, methoxymethyl, methyl, -NHC CH 3,-NHCO 2 CH 3, trifluoromethoxy, trifluoromethyl, wherein R a is selected from hydrogen, halo and methyl; R 2 is selected from hydrogen, cyano, -CH 2 OH, halo, and methyl; R 3 is selected from hydrogen, cyano, cyclopropyl, difluoromethyl, fluoromethyl, halo, hydroxymethyl, methoxy, methyl, methylsulfonyl, trifluoromethoxy, trifluoromethyl, -CH 2 N(CH 3) 2, and a five-membered aromatic ring containing one, two, or three heteroatoms selected from nitrogen, oxygen, and sulfur; R 4 is selected from hydrogen, halo, and methyl; R 5 is selected from and and R 6 is selected from hydrogen, ethyl, fluoromethyl, difluoromethyl, methyl, and trifluoromethyl; A is selected from, and wherein " " denotes the point of attachment to B; B is selected from wherein "*" indicates the point of attachment to R5 and "**" indicates the point of attachment to ring A; R 1 is selected from hydrogen, amino, -CO 2 H, difluoromethyl, ethyl, halo, hydroxymethyl, methoxy, methyl, -NHC CH 3, -NHCO 2 CH 3, trifluoromethoxy, and trifluoromethyl; R 2 is selected from hydrogen, cyano, -CH 2 OH, halo, and methyl; R 3 is selected from hydrogen, cyano, cyclopropyl, difluoromethyl, halo, hydroxymethyl, methoxy, methyl, methylsulfonyl, trifluoromethoxy, trifluoromethyl, -CH 2 N(CH 3) 2, and a five-membered aromatic ring containing one, two, or three heteroatoms selected from nitrogen, oxygen, and sulfur; R 4 is selected from hydrogen, halo, and methyl; R 5 is selected from R 6 is selected from hydrogen, ethyl, fluoromethyl, difluoromethyl, methyl, and trifluoromethyl; and R 7 is methyl.