A compound of formula: wherein: R 1 is halo; R 2 is H, halo, CN, C 1 -C 3 alkyl, C 1 -C 3 haloalkyl, or C 1 -C 3 alkoxy; R 3 is OH, halo, CN, C 1 -C 3 alkyl, C 3 -C 6 cycloalkyl, C 1 -C 3 haloalkyl, C 1 -C 3 alkoxy, or C 1 -C 3 haloalkoxy; R 4 is selected from R 11, -OR 11, -SR 11, and -NRR 11; R 11 is C 1 -C 4 alkyl, C 3 -C 6 cycloalkyl, oxetanyl, tetrahydrofuranyl, or tetrahydropyranyl, each of which is optionally substituted with up to three groups selected from halo, CN, -OR, C 1 -C 3 haloalkoxy, -NR 2, and a 4-7 membered heterocyclic group containing one or two heteroatoms selected from N, O and S as ring members that is optionally substituted with one or two groups selected from halo, oxo, CN, R, -OR, and -NR 2; R is independently selected at each occurrence from H and C 1 -C 3 alkyl optionally substituted with one to three groups selected from halo, -OH, C 1 -C 3 alkoxy, oxo, CN, -NH 2, - NH(C 1 -C 3 alkyl), -N(C 1 -C 3 alkyl) 2, and cyclopropyl; and two R groups directly attached to the same atom, which may be C or N, can optionally be taken together to form a 3-6 membered ring that can optionally contain an added heteroatom selected from N, O and S as a ring member, and can be substituted by up to two groups selected from -OH, oxo, C 1 -C 3 alkyl, and C 1 -C 3 alkoxy; R 5 is H, halo, CN, C 1 -C 3 alkyl, or C 1 -C 3 haloalkyl; R 6 is H, halo, C 1 -C 3 alkoxy, or C 1 -C 6 alkyl; R 7 is H, halo, C 1 -C 3 alkoxy, or C 1 -C 6 alkyl; R 8 is H or C 1 -C 6 alkyl; R 9 taken together with one group selected from R 6, R 7 and R 8 forms a 3-7 membered cycloalkyl ring or a 3-7 membered heterocyclic ring containing N, O or S as a ring member; wherein the cycloalkyl or heterocyclic ring is optionally substituted with up to three groups selected from R, -OR, -NR 2, halo, CN, COOR, CONR 2, and oxo; W is -COOR 10, -C NH-SO 2 R, -C NH-SO 2 NR 2, 5-tetrazolyl, or 1,2,4-oxadiazol-3-yl-5 -one; R 10 is H or C 1 -C 6 alkyl that is optionally substituted with one or two groups selected from halo, -OR, oxo, CN, -NR 2, COOR, and CONR 2; or a pharmaceutically acceptable salt thereof. R 1 is halo; R 2 is H, halo, CN, C 1 -C 3 alkyl, C 1 -C 3 haloalkyl, or C 1 -C 3 alkoxy; R 3 is OH, halo, CN, C 1 -C 3 alkyl, C 3 -C 6 cycloalkyl, C 1 -C 3 haloalkyl, C 1 -C 3 alkoxy, or C 1 -C 3 haloalkoxy; R 4 is selected from R 11, -OR 11, -SR 11, and -NRR 11; R 11 is C 1 -C 4 alkyl, C 3 -C 6 cycloalkyl, oxetanyl, tetrahydrofuranyl, or tetrahydropyranyl, each of which is optionally substituted with up to three groups selected from halo, CN, -OR, C 1 -C 3 haloalkoxy, -NR 2, and a 4-7 membered heterocyclic group containing one or two heteroatoms selected from N, O and S as ring members that is optionally substituted with one or two groups selected from halo, oxo, CN, R, -OR, and -NR 2; R is independently selected at each occurrence from H and C 1 -C 3 alkyl optionally substituted with one to three groups selected from halo, -OH, C 1 -C 3 alkoxy, oxo, CN, -NH 2, - NH(C 1 -C 3 alkyl), -N(C 1 -C 3 alkyl) 2, and cyclopropyl; and two R groups directly attached to the same atom, which may be C or N, can optionally be taken together to form a 3-6 membered ring that can optionally contain an added heteroatom selected from N, O and S as a ring member, and can be substituted by up to two groups selected from -OH, oxo, C 1 -C 3 alkyl, and C 1 -C 3 alkoxy; R 5 is H, halo, CN, C 1 -C 3 alkyl, or C 1 -C 3 haloalkyl; R 6 is H, halo, C 1 -C 3 alkoxy, or C 1 -C 6 alkyl; R 7 is H, halo, C 1 -C 3 alkoxy, or C 1 -C 6 alkyl; R 8 is H or C 1 -C 6 alkyl; R 9 taken together with one group selected from R 6, R 7 and R 8 forms a 3-7 membered cycloalkyl ring or a 3-7 membered heterocyclic ring containing N, O or S as a ring member; wherein the cycloalkyl or heterocyclic ring is optionally substituted with up to three groups selected from R, -OR, -NR 2, halo, CN, COOR, CONR 2, and oxo; W is -COOR 10, -C NH-SO 2 R, -C NH-SO 2 NR 2, 5-tetrazolyl, or 1,2,4-oxadiazol-3-yl-5 -one; R 10 is H or C 1 -C 6 alkyl that is optionally substituted with one or two groups selected from halo, -OR, oxo, CN, -NR 2, COOR, and CONR 2; or a pharmaceutically acceptable salt thereof.