A compound represented by formula (I) or a pharmaceutically acceptable salt thereof: wherein: X is N, and Z is CH; R 1 is selected from the group consisting of Y, aryl substituted by Y, and alkyl substituted by Y; Y is -CO 2 H, -C(O)NH 2 , -C(O)NH(C 1 -C 6 )alkyl, -C(O)N((C 1 -C 6 )alkyl) 2 , -C(O)NH(aryl), C(O)N(aryl)((C 1 -C 6 )alkyl), C(O)N(aryl) 2 , -C(O)NH((C 1 -C 6 )haloalkyl), -S(O) 2 NH 2 ,-S(O) 2 NH((C 1 -C 6 )alkyl), -S(O) 2 NH((C 1 -C 6 )haloalkyl), -S(O) 2 NH(aryl), -S(O) 2 NHC(O)(C 1 -C 6 )alkyl, -S(O) 2 NHC(O)(C 1 -C 6 )haloalkyl, -S(O) 2 NHC(O)aryl, -N(H)S(O) 2 (C 1 -C 6 )alkyl,-N(H)S(O) 2 aryl, -N(H)S(O) 2 (C 1 -C 6 )haloalkyl, -NHC(O)((C 1 -C 6 )alkyl), -NHC(O)((C 1 -C 6 )haloalkyl), -NHC(O)(aryl), -NHC(O)NH(C 1 -C 6 )alkyl, -NHC(O)NHaryl, -C(O)N(H)S(O) 2 (C 1 -C 6 )alkyl, -C(O)N(H)S(O) 2 aryl, C(O)N(H)S(O) 2 ((C 1 -C 6 )haloalkyl), or 1 H -tetrazolyl; R 2 and R 3 are each independently selected from the group consisting of H and aryl; R 4 , R 5 , R 6 , and R 7 are each H; wherein R 8 is halo; m is 1; n is 0; further wherein any occurrence of (C 1 -C 6 )alkyl, aryl(C 1 -C 6 )alkyl, aryl, (C 3 -C 6 )cycloalkyl, (C 1 -C 6 )alkoxyl, (C 1 -C 6 )haloalkyl, (C 1 -C 6 )hydroxyalkyl, heteroaryl, or heteroaryl(C 1 -C 6 )alkyl is optionally and independently substituted by one or more substituents selected from the group consisting of halo, (C 1 -C 6 )alkyl, (C 1 -C 6 )haloalkyl, aryl, -NH 2 , -NH((C 1 -C 6 )alkyl),-N((C 1 -C 6 )alkyl) 2 , -OH, (C 3 -C 6 )cycloalkyl, (C 1 -C 6 )alkoxyl, (C 1 -C 6 )haloalkoxyl, -SH,-S((C 1 -C 6 )alkyl), (C 1 -C 6 )hydroxyalkyl, and (C 1 -C 6 )alkoxy(C 1 -C 6 )alkyl, -CN, -CF 3 ,-C(O)NH 2 , -C(O)NH(R 12 ), -C(O)N(R 12 ) 2 , -N(H)C(O)(R 12 ), -N(R 12 )C(O)(R 12 ), -S(O) 2 NH 2 , -S(O) 2 NH(R 12 ), -S(O) 2 N(R 12 ) 2 , -N(H)S(O) 2 (R 12 ), -N(R 12 )S(O) 2 (R 12 ), -NHC(O)NH 2 ,-NHC(O)NH(R 12 ), and -NHC(O)N(R 12 ) 2 ; and each occurrence of R 12 is independently selected from the group consisting of (C 1 -C 6 )alkyl), aryl, and aryl(C 1 -C 6 )alkyl. X is N, and Z is CH; R 1 is selected from the group consisting of Y, aryl substituted by Y, and alkyl substituted by Y; Y is -CO 2 H, -C(O)NH 2 , -C(O)NH(C 1 -C 6 )alkyl, -C(O)N((C 1 -C 6 )alkyl) 2 , -C(O)NH(aryl), C(O)N(aryl)((C 1 -C 6 )alkyl), C(O)N(aryl) 2 , -C(O)NH((C 1 -C 6 )haloalkyl), -S(O) 2 NH 2 ,-S(O) 2 NH((C 1 -C 6 )alkyl), -S(O) 2 NH((C 1 -C 6 )haloalkyl), -S(O) 2 NH(aryl), -S(O) 2 NHC(O)(C 1 -C 6 )alkyl, -S(O) 2 NHC(O)(C 1 -C 6 )haloalkyl, -S(O) 2 NHC(O)aryl, -N(H)S(O) 2 (C 1 -C 6 )alkyl,-N(H)S(O) 2 aryl, -N(H)S(O) 2 (C 1 -C 6 )haloalkyl, -NHC(O)((C 1 -C 6 )alkyl), -NHC(O)((C 1 -C 6 )haloalkyl), -NHC(O)(aryl), -NHC(O)NH(C 1 -C 6 )alkyl, -NHC(O)NHaryl, -C(O)N(H)S(O) 2 (C 1 -C 6 )alkyl, -C(O)N(H)S(O) 2 aryl, C(O)N(H)S(O) 2 ((C 1 -C 6 )haloalkyl), or 1 H -tetrazolyl; R 2 and R 3 are each independently selected from the group consisting of H and aryl; R 4 , R 5 , R 6 , and R 7 are each H; wherein R 8 is halo; m is 1; n is 0; further wherein any occurrence of (C 1 -C 6 )alkyl, aryl(C 1 -C 6 )alkyl, aryl, (C 3 -C 6 )cycloalkyl, (C 1 -C 6 )alkoxyl, (C 1 -C 6 )haloalkyl, (C 1 -C 6 )hydroxyalkyl, heteroaryl, or heteroaryl(C 1 -C 6 )alkyl is optionally and independently substituted by one or more substituents selected from the group consisting of halo, (C 1 -C 6 )alkyl, (C 1 -C 6 )haloalkyl, aryl, -NH 2 , -NH((C 1 -C 6 )alkyl),-N((C 1 -C 6 )alkyl) 2 , -OH, (C 3 -C 6 )cycloalkyl, (C 1 -C 6 )alkoxyl, (C 1 -C 6 )haloalkoxyl, -SH,-S((C 1 -C 6 )alkyl), (C 1 -C 6 )hydroxyalkyl, and (C 1 -C 6 )alkoxy(C 1 -C 6 )alkyl, -CN, -CF 3 ,-C(O)NH 2 , -C(O)NH(R 12 ), -C(O)N(R 12 ) 2 , -N(H)C(O)(R 12 ), -N(R 12 )C(O)(R 12 ), -S(O) 2 NH 2 , -S(O) 2 NH(R 12 ), -S(O) 2 N(R 12 ) 2 , -N(H)S(O) 2 (R 12 ), -N(R 12 )S(O) 2 (R 12 ), -NHC(O)NH 2 ,-NHC(O)NH(R 12 ), and -NHC(O)N(R 12 ) 2 ; and each occurrence of R 12 is independently selected from the group consisting of (C 1 -C 6 )alkyl), aryl, and aryl(C 1 -C 6 )alkyl. <EOS>