A compound of formula wherein L is -(CHR 8) m -(CHR 9) n - q - R 1 is -NR 6 R 7, aryl, heteroaryl, C 3-7 cyloalkyl, or heterocycloalkyl, wherein each of aryl, heteroaryl, C 3-7 cyloalkyl and heterocycloalkyl are optionally substituted with one or more R 1'; each R 1' is independently selected from halogen, cyano, C 1-7 alkyl, halo-C 1-7 alkyl, C 3-7 cycloalkyl, C 3-7 cycloalkyl-C 1-7 alkyl, phenyl, benzyl, heteroaryl, amino, hydroxy, C 1-7 alkoxy, halo-C 1-7 alkoxy, C 1-7 alkoxy-C 1-7 alkyl, oxo, -CH 2 -OR 16, -C -OR 16, - CH 2 -NHR 16, -CH 2 -CH 2 -NR 17 R 18, -CH 2 -C -NHR 16 and -C -NHR 16; or two R 1' together are forming -(CR 12 R 13) s - or -(CR 12 R 13) t -O-(CR 14 R 15) u -; R 2 is methyl or hydrogen; R 3 is hydrogen or methyl; R 4 is phenyl or pyridinyl, each optionally substituted with one or two substituents independently selected from fluoro, chloro, bromo, cyano and trifluoromethyl; R 5 is selected from: each optionally substituted by with one or more R 5'; each R 5' is independently selected from halogen, cyano, C 1-7 alkyl, halo-C 1-7 alkyl, C 3-7 cycloalkyl, amino, hydroxy, C 1-7 alkoxy and -C NH 2; R 6 is methyl, ethyl, isopropyl, tert-butyl, trifluoroethyl, cyclopropyl, adamantyl, oxetanyl, pyrrolidinyl, phenyl, thiazolyl, pyrazolyl or pyridinyl, each optionally substituted with one R 6'; each R 6' is independently selected from halo, cyano, C 1-7 alkyl, halo-C 1-7 alkyl, halo-C 1-7 alkoxy, heterocycloalkyl-CH 2 -phenyl optionally substituted with C 1-7 alkyl, heterocycloalkyl, phenyl, and C 1-7 alkyl-heteroaryl; R 7 is hydrogen, C 1-7 alkyl, C 3-7 cycloalkyl or is halo-C 1-7 alkyl; R 8 is hydrogen, C 1-7 alkyl, hydroxy-C 1-7 alkyl, C 1-7 alkoxy-C 1-7 alkyl, halo-C 1-7 alkoxy-C 1-7 alkyl, -(CH 2) r -phenyl, -(CH 2) r -heteroaryl, -(CH 2) r NR 10 R 11; R 9 is hydrogen, C 1-7 alkyl, or halo-C 1-7 alkyl; R 10 and R 11 are independently selected from hydrogen and C 1-7 alkyl or R 10 and R 11 together with the nitrogen to which they are bound form heterocycloalkyl; R 12, R 13, R 14 and R 15 are each independently selected from hydrogen, halogen and C 1-7 alkyl; R 16 is hydrogen, C 1-7 alkyl, halo-C 1-7 alkyl, C 3-7 cycloalkyl, or heterocycloalkyl; R 17 and R 18 are independently selected from hydrogen and C 1-7 alkyl or R 17 and R 18 together with the nitrogen to which they are bound form heterocycloalkyl; m is 0, 1 or 2; n is 0, 1 or 2; q is 0 or 1; r is 0, 1 or 2; s is 2, 3 or 4; t is 1 or 2; u is 1 or 2; or a pharmaceutically acceptable salt thereof; with the proviso that if R 1 is heterocycloalkyl bound to L via a nitrogen ring atom or R 1 is - NR 6 R 7 then: if q = 0 then m + n ≥ 2, or if q = 1 then m + n ≥ 1. L is -(CHR 8) m -(CHR 9) n - q - R 1 is -NR 6 R 7, aryl, heteroaryl, C 3-7 cyloalkyl, or heterocycloalkyl, wherein each of aryl, heteroaryl, C 3-7 cyloalkyl and heterocycloalkyl are optionally substituted with one or more R 1'; each R 1' is independently selected from halogen, cyano, C 1-7 alkyl, halo-C 1-7 alkyl, C 3-7 cycloalkyl, C 3-7 cycloalkyl-C 1-7 alkyl, phenyl, benzyl, heteroaryl, amino, hydroxy, C 1-7 alkoxy, halo-C 1-7 alkoxy, C 1-7 alkoxy-C 1-7 alkyl, oxo, -CH 2 -OR 16, -C -OR 16, - CH 2 -NHR 16, -CH 2 -CH 2 -NR 17 R 18, -CH 2 -C -NHR 16 and -C -NHR 16; or two R 1' together are forming -(CR 12 R 13) s - or -(CR 12 R 13) t -O-(CR 14 R 15) u -; R 2 is methyl or hydrogen; R 3 is hydrogen or methyl; R 4 is phenyl or pyridinyl, each optionally substituted with one or two substituents independently selected from fluoro, chloro, bromo, cyano and trifluoromethyl; R 5 is selected from: each optionally substituted by with one or more R 5'; each R 5' is independently selected from halogen, cyano, C 1-7 alkyl, halo-C 1-7 alkyl, C 3-7 cycloalkyl, amino, hydroxy, C 1-7 alkoxy and -C NH 2; R 6 is methyl, ethyl, isopropyl, tert-butyl, trifluoroethyl, cyclopropyl, adamantyl, oxetanyl, pyrrolidinyl, phenyl, thiazolyl, pyrazolyl or pyridinyl, each optionally substituted with one R 6'; each R 6' is independently selected from halo, cyano, C 1-7 alkyl, halo-C 1-7 alkyl, halo-C 1-7 alkoxy, heterocycloalkyl-CH 2 -phenyl optionally substituted with C 1-7 alkyl, heterocycloalkyl, phenyl, and C 1-7 alkyl-heteroaryl; R 7 is hydrogen, C 1-7 alkyl, C 3-7 cycloalkyl or is halo-C 1-7 alkyl; R 8 is hydrogen, C 1-7 alkyl, hydroxy-C 1-7 alkyl, C 1-7 alkoxy-C 1-7 alkyl, halo-C 1-7 alkoxy-C 1-7 alkyl, -(CH 2) r -phenyl, -(CH 2) r -heteroaryl, -(CH 2) r NR 10 R 11; R 9 is hydrogen, C 1-7 alkyl, or halo-C 1-7 alkyl; R 10 and R 11 are independently selected from hydrogen and C 1-7 alkyl or R 10 and R 11 together with the nitrogen to which they are bound form heterocycloalkyl; R 12, R 13, R 14 and R 15 are each independently selected from hydrogen, halogen and C 1-7 alkyl; R 16 is hydrogen, C 1-7 alkyl, halo-C 1-7 alkyl, C 3-7 cycloalkyl, or heterocycloalkyl; R 17 and R 18 are independently selected from hydrogen and C 1-7 alkyl or R 17 and R 18 together with the nitrogen to which they are bound form heterocycloalkyl; m is 0, 1 or 2; n is 0, 1 or 2; q is 0 or 1; r is 0, 1 or 2; s is 2, 3 or 4; t is 1 or 2; u is 1 or 2; or a pharmaceutically acceptable salt thereof; with the proviso that if R 1 is heterocycloalkyl bound to L via a nitrogen ring atom or R 1 is - NR 6 R 7 then: if q = 0 then m + n ≥ 2, or if q = 1 then m + n ≥ 1. if q = 0 then m + n ≥ 2, or if q = 1 then m + n ≥ 1.