A compound of formula I: in which: m is selected from 0, 1 and 2; p is selected from 0 and 1; Y 1 is selected from CH and N; Y 2 is selected from CR 6 and N; Y 3 is selected from NH and CR 7 R 8; R 1 is selected from C 6-10 aryl, C 3-8 cycloalkyl, C 3-8 cycloalkenyl and a 5-9 member heteroaryl group containing from 1 to 4 heteroatoms selected from N, O and S; wherein said aryl or heteroaryl of R 1 is substituted with 1 to 5 R 9 groups independently selected from halo, amino, hydroxy, N 3, C 1-4 alkyl, hydroxy-substituted-C 1-4 alkyl, halo-susbtituted-C 1-4 alkyl, amino-substituted-C 1-4 alkyl, -C OR 10 and -NHC R 10; R 10 is selected from hydrogen, phenyl and naphthyl; wherein said phenyl of R 10 is unsubstituted or substituted with methoxy; R 2a and R 2b are independently selected from hydrogen, C 1-4 alkyl, C 1-4 alkoxy, amino, hydroxy, C 3-8 cycloalkyl and C 1-4 alkyl-amino; R 3a and R 3b are independently selected from hydrogen, halo, carbonyl, C 1-4 alkyl, C 1-4 alkoxy, amino, hydroxy, C 3-8 cycloalkyl and C 1-4 alkyl-amino; R 4a and R 4b are independently selected from hydrogen, halo, carbonyl, C 1-4 alkyl, C 1-4 alkoxy, amino, hydroxy, C 3-8 cycloalkyl and C 1-4 alkyl-amino; R 5a and R 5b are independently selected from hydrogen, carbonyl, C 1-4 alkyl, C 1-4 alkoxy, amino, hydroxy, C 3-8 cycloalkyl and C 1-4 alkyl-amino; wherein any two groups selected from R 2a, R 3a, R 4a and R 7 can form a 5 to 6 member unsaturated, partially unsaturated ring or saturated ring optionally containing a ring nitrogen; R 6 is selected from hydrogen, halo, cyano, C 1-4 alkyl, C 1-4 alkoxy, amino-carbonyl, halo-substituted C 1-4 alkyl, halo-substituted C 1-4 alkoxy, hydroxy-substituted C 1-4 alkyl, amino-substituted C 1-4 alkyl, -S 1-2 R 6a, -C R 6a, -C NR 6a R 6b, -C NR 6a R 6b and -NR 6a C R 6b; wherein R 6a and R 6b are independently selected from hydrogen and C 1-4 alkyl; R 7 is selected from hydrogen, C 1-4 alkyl, C 3-6 cycloalkyl, C 6-10 aryl and a 5-9 member heteroaryl group containing from 1 to 4 heteroatoms selected from N, O and S; R 7 and R 4a together with the carbon atoms to which they are both attached can form a pyrrolidinyl or cyclopropyl group optionally substituted with amino; R 8 is selected from amino, amino-methyl and methyl-amino; or a pharmaceutically acceptable salt thereof. m is selected from 0, 1 and 2; p is selected from 0 and 1; Y 1 is selected from CH and N; Y 2 is selected from CR 6 and N; Y 3 is selected from NH and CR 7 R 8; R 1 is selected from C 6-10 aryl, C 3-8 cycloalkyl, C 3-8 cycloalkenyl and a 5-9 member heteroaryl group containing from 1 to 4 heteroatoms selected from N, O and S; wherein said aryl or heteroaryl of R 1 is substituted with 1 to 5 R 9 groups independently selected from halo, amino, hydroxy, N 3, C 1-4 alkyl, hydroxy-substituted-C 1-4 alkyl, halo-susbtituted-C 1-4 alkyl, amino-substituted-C 1-4 alkyl, -C OR 10 and -NHC R 10; R 10 is selected from hydrogen, phenyl and naphthyl; wherein said phenyl of R 10 is unsubstituted or substituted with methoxy; R 2a and R 2b are independently selected from hydrogen, C 1-4 alkyl, C 1-4 alkoxy, amino, hydroxy, C 3-8 cycloalkyl and C 1-4 alkyl-amino; R 3a and R 3b are independently selected from hydrogen, halo, carbonyl, C 1-4 alkyl, C 1-4 alkoxy, amino, hydroxy, C 3-8 cycloalkyl and C 1-4 alkyl-amino; R 4a and R 4b are independently selected from hydrogen, halo, carbonyl, C 1-4 alkyl, C 1-4 alkoxy, amino, hydroxy, C 3-8 cycloalkyl and C 1-4 alkyl-amino; R 5a and R 5b are independently selected from hydrogen, carbonyl, C 1-4 alkyl, C 1-4 alkoxy, amino, hydroxy, C 3-8 cycloalkyl and C 1-4 alkyl-amino; wherein any two groups selected from R 2a, R 3a, R 4a and R 7 can form a 5 to 6 member unsaturated, partially unsaturated ring or saturated ring optionally containing a ring nitrogen; R 6 is selected from hydrogen, halo, cyano, C 1-4 alkyl, C 1-4 alkoxy, amino-carbonyl, halo-substituted C 1-4 alkyl, halo-substituted C 1-4 alkoxy, hydroxy-substituted C 1-4 alkyl, amino-substituted C 1-4 alkyl, -S 1-2 R 6a, -C R 6a, -C NR 6a R 6b, -C NR 6a R 6b and -NR 6a C R 6b; wherein R 6a and R 6b are independently selected from hydrogen and C 1-4 alkyl; R 7 is selected from hydrogen, C 1-4 alkyl, C 3-6 cycloalkyl, C 6-10 aryl and a 5-9 member heteroaryl group containing from 1 to 4 heteroatoms selected from N, O and S; R 7 and R 4a together with the carbon atoms to which they are both attached can form a pyrrolidinyl or cyclopropyl group optionally substituted with amino; R 8 is selected from amino, amino-methyl and methyl-amino; or a pharmaceutically acceptable salt thereof.