Patent ID: 8314062

Claim:
A compound of formula (I): or a pharmaceutically acceptable salt thereof, wherein: m is 1, 2, 3 or 4; n is 0, 1 or 2; R 1 is CO 2 R 6 , CONR 6 SO 2 R 6 or CONR 6 SO 2 N(R 6 ) 2 ; R 2 is H, C 1-6 alkyl, C 2-6 alkenyl or C 3-8 cycloalkyl, wherein said alkyl, alkenyl or cycloalkyl is optionally substituted with 1 to 3 halo; R 3 is C 1-6 alkyl, (CH 2 ) 0-3 C 3-8 cycloalkyl, (CH 2 ) 0-3 aryl or (CH 2 ) 0-3 Het, optionally substituted by halo, OR 6 , SR 6 , N(R 6 ) 2 , C 1-6 alkyl, NO 2 , CN, CF 3 , NR 6 SO 2 R 6 , SO 2 N(R 6 ) 2 , NHCO 2 R 6 , NHCOR 6 , NHCONHR 6 , CO 2 R 6 , C(O)R 6 or CON(R 6 ) 2 ; R 4 is hydrogen, halo, hydroxy, C 1-6 alkyl, C 2-6 alkenyl, C 2-6 alkynyl, (CH 2 ) 0-3 C 3-8 cycloalkyl, (CH 2 ) 0-3 aryl or C 1-6 alkoxy, optionally substituted by halo, OR 6 , SR 6 , N(R 6 ) 2 , C 1-6 alkyl, NO 2 , CN, CF 3 NR 6 SO 2 R 6 , SO 2 N(R 6 ) 2 , NHCO 2 R 6 , NHCOR 6 , NHCONHR 6 , CO 2 R 6 , C(O)R 6 or CON(R 6 ) 2 ; R 5 is hydrogen, halo, hydroxy, C 1-6 alkyl, C 1-6 alkoxy, CN, NO 2 , C 3-8 cycloalkyl, N(R 6 ) 2 , aryl or heteroaryl, optionally substituted by 1 to 8 halo, C 1-4 alkyl or N(R 6 ) 2 ; each R 6 is independently hydrogen, C 1-6 alkyl or C 3-8 cycloalkyl; R a is hydrogen or C 1-4 alkyl; or R a and R 3 are joined to form a 5- to 7-membered heterocycle containing 1, 2 or 3 N atoms, which heterocycle is optionally substituted by C 1-4 alkyl; each W is independently halo, OR 6 , C 1-6 alkyl, CN, NO 2 , CF 3 , OCF 3 , OCHF 2 , CO 2 R 6 , CON(R 6 ) 2 , COR 6 , NR 6 C(O)R 6 , aryl or heteroaryl; Z is a bond, —CH 2 — or C═O; M is C 2-12 alkylene or C 2-12 alkenylene, optionally substituted by halo, C 1-6 alkyl, (CH 2 ) 0-3 C 3-8 cycloalkyl or (CH 2 ) 0-3 aryl, and optionally containing O, NR 6 , S, SO or SO 2 ; and ring B is and ring A is pyridinyl, pyrrolidinyl or pyrimidinyl.