A compound of formula: wherein: W is N or C-R 8; X is N, CH or C(CH 3); Z is N or C-R 14; Y is N or C-R 5 (subject to proviso that no more than 2 of W, X, Y and Z are N); R 1 is C 1-4 alkyl; R 2 is H, OH, C 1-4 alkyl, -N(CH 3) 2, -NH(CH 3), halo, -CF 3, -NH 2, -OC 1-4 alkyl, -NHC H, -NHC C 1-4 alkyl, -N(CH 3)C C 1-4 alkyl, -NHCH(CH 3)CH 2 OCH 3, -N(CH 3)CH 2 CH 2 OCH 3, -OCH 2 CH 2 OCH 3,-OCH 2 CH 2 CH 2 OH, -OCH(CH 3)CH 2 OCH 3, or R 2 is a group selected from -G-CH 2 CH(R 3)(R 4), -G-CH(R 3)(R 4) and -G-R 3 in which G is NH, N(CH 3), O, C NH or NHC; R 3 is phenyl, pyridinyl, C 3 - 7 cycloalkyl or a heterocycle optionally substituted by =O; and R 4 is H or C 1-4 alkyl; R 5 is H, C 1-4 alkyl, halo, -CF 3, CN, OH, -OC 1-4 alkyl, -CH 2 NH 2, -OCF 3 or-SO 2 CH 3; R 6 is -NR 11 R 12 or a group D is CH or N; E is N, O, CH or SO 2; R 7, when present, is H, OH, C 1-4 alkyl, -NH 2, -SO 2 C 1-4 alkyl, -SO 2 phenyl, -SO 2 benzyl, -SO 2 N(CH 3) 2,-NHSO 2 CH 3, -C C 1-4 alkyl or-C phenyl; R 8 is H, C 1-4 alkyl, halo, -CF 3, CN, OH, -OC 1-4 alkyl, -OCF 3, -OCH 2 phenyl or -OCH 2 C 3 - 7 cycloalkyl; R 9 is H, C 1-4 alkyl, -C NH 2, -CO 2 CH 3, -CF 3, halo, OH, -OC 1-4 alkyl, -CH 2 OH, -C NHCH 3,-C N(CH 3) 2, -CH 2 OC 1-4 alkyl, -CH 2 OCH 2 C 3-7 cycloalkyl or oxo; R 10 is H, C 1-4 alkyl, -C NH 2, -CO 2 CH 3, -CF 3, halo, OH or -OC 1-4 alkyl; R 11 is H, C 1-4 alkyl or SO 2 CH 3; R 12 is H, C 1-4 alkyl, C 1-4 alkyleneNHR 13, C 1-4 alkyleneOH, SO 2 CH 3, a heterocycle or a heterocycle comprising SO 2; R 13 is H or SO 2 CH 3; R 14 is H, C 1-4 alkyl or NHC C 1-4 alkyl; n and m are each an integer independently selected from 0, 1 and 2; and wherein at each occurrence the term "heterocycle" refers to a 5 or 6 membered saturated ring that includes one or two ring heteroatoms selected from nitrogen, oxygen and sulphur and the term "heterocycle comprising SO 2 " refers to a 5 or 6 membered saturated ring that includes one or two ring heteroatoms selected from nitrogen, oxygen, sulfur and sulfur dioxide wherein at least one of the heteroatoms is sulfur dioxide or a salt thereof. W is N or C-R 8; X is N, CH or C(CH 3); Z is N or C-R 14; Y is N or C-R 5 (subject to proviso that no more than 2 of W, X, Y and Z are N); R 1 is C 1-4 alkyl; R 2 is H, OH, C 1-4 alkyl, -N(CH 3) 2, -NH(CH 3), halo, -CF 3, -NH 2, -OC 1-4 alkyl, -NHC H, -NHC C 1-4 alkyl, -N(CH 3)C C 1-4 alkyl, -NHCH(CH 3)CH 2 OCH 3, -N(CH 3)CH 2 CH 2 OCH 3, -OCH 2 CH 2 OCH 3,-OCH 2 CH 2 CH 2 OH, -OCH(CH 3)CH 2 OCH 3, or R 2 is a group selected from -G-CH 2 CH(R 3)(R 4), -G-CH(R 3)(R 4) and -G-R 3 in which G is NH, N(CH 3), O, C NH or NHC; R 3 is phenyl, pyridinyl, C 3 - 7 cycloalkyl or a heterocycle optionally substituted by =O; and R 4 is H or C 1-4 alkyl; G is NH, N(CH 3), O, C NH or NHC; R 3 is phenyl, pyridinyl, C 3 - 7 cycloalkyl or a heterocycle optionally substituted by =O; and R 4 is H or C 1-4 alkyl; R 5 is H, C 1-4 alkyl, halo, -CF 3, CN, OH, -OC 1-4 alkyl, -CH 2 NH 2, -OCF 3 or-SO 2 CH 3; R 6 is -NR 11 R 12 or a group D is CH or N; E is N, O, CH or SO 2; R 7, when present, is H, OH, C 1-4 alkyl, -NH 2, -SO 2 C 1-4 alkyl, -SO 2 phenyl, -SO 2 benzyl, -SO 2 N(CH 3) 2,-NHSO 2 CH 3, -C C 1-4 alkyl or-C phenyl; R 8 is H, C 1-4 alkyl, halo, -CF 3, CN, OH, -OC 1-4 alkyl, -OCF 3, -OCH 2 phenyl or -OCH 2 C 3 - 7 cycloalkyl; R 9 is H, C 1-4 alkyl, -C NH 2, -CO 2 CH 3, -CF 3, halo, OH, -OC 1-4 alkyl, -CH 2 OH, -C NHCH 3,-C N(CH 3) 2, -CH 2 OC 1-4 alkyl, -CH 2 OCH 2 C 3-7 cycloalkyl or oxo; R 10 is H, C 1-4 alkyl, -C NH 2, -CO 2 CH 3, -CF 3, halo, OH or -OC 1-4 alkyl; R 11 is H, C 1-4 alkyl or SO 2 CH 3; R 12 is H, C 1-4 alkyl, C 1-4 alkyleneNHR 13, C 1-4 alkyleneOH, SO 2 CH 3, a heterocycle or a heterocycle comprising SO 2; R 13 is H or SO 2 CH 3; R 14 is H, C 1-4 alkyl or NHC C 1-4 alkyl; n and m are each an integer independently selected from 0, 1 and 2; and wherein at each occurrence the term "heterocycle" refers to a 5 or 6 membered saturated ring that includes one or two ring heteroatoms selected from nitrogen, oxygen and sulphur and the term "heterocycle comprising SO 2 " refers to a 5 or 6 membered saturated ring that includes one or two ring heteroatoms selected from nitrogen, oxygen, sulfur and sulfur dioxide wherein at least one of the heteroatoms is sulfur dioxide or a salt thereof.