A compound of formula (I): or a pharmaceutically acceptable salt thereof wherein; X represents CH, or N; R represents hydrogen, or -C 1-6 alkyl, said alkyl optionally substituted with 1 to 3 groups of R a R 1 represents hydrogen, -C 1-6 alkyl, -CN, -(CH 2 ) n NH(CH 2 ) n N(R) 2 , -C 2-6 alkenyl, -(CH 2 ) n OR, or-(CH 2 ) n halogen; R 2 represents -OC 1-6 alkyl, -C 2-6 alkenylR 3 , -(CH 2 ) n OR, -(CH 2 ) n halogen, -O(CH 2 ) n halogen, -C 6-10 aryl, -C 5 - 10 heterocyclyl, -O(CH 2 ) n R a , -N(CH 3 )(CH 2 ) n OR, -NRC(O)R, -NH(CH 2 ) n halo, -NC(O)C 6-10 aryl, -NC(O)C 5-10 heterocyclyl, -N(CH 3 )(CH 2 ) n halogen, -C(O)NC 6-10 aryl, said alkyl, aryl,and heterocyclyl optionally substituted with 1 to 3 groups of R a ; or an adjacent R 1 can combine with R 2 to form a nine to ten membered bicyclic ring together with the ring to which R 1 and R 2 are attached, optionally interrupted with N, S, and/or O, said bicyclic ring optionally substituted with 1 to 3 groups of R a ; R 3 represents hydrogen, -C 1-6 alkyl, -(CH 2 ) n halogen, -(CH 2 ) n N(R) 2 , -(CH 2 ) n NR(CH 2 ) n N(R) 2 , -C 6-10 aryl, -C 5-10 heteroaryl, said alkyl, aryl, and heteroaryl optionally substituted with 1 to 3 groups of R a ; R a represents -CN, CF 3 , -C 1-6 alkyl, -C 2-6 alkenyl, -C 2-6 alkynyl, C 6-10 aryl, -C 5-10 heterocyclyl, -CN, NO 2 , (CH 2 ) n halogen, -O(CH 2 ) n halogen, (CH 2 ) n OR, -O(CH 2 ) n C 6-10 aryl, -(CH 2 ) n N(R) 2 , -C(O)N(R) 2 , -N(CH 3 )(CH 2 ) n OR, -NRCOR, -COR, -NH(CH 2 ) n halo, -NC(O)C C 6-10 aryl,-N(CH 3 )(CH 2 ) n halogen, C(O)C 6-10 aryl, or -CO 2 R, said alkyl, alkenyl, alkynyl, aryl, and heterocyclyl optionally substituted with 1 to 3 groups of R b ; R b represents hydrogen, -C 1-6 alkyl, -OR, -(CH 2 ) n N(R) 2 , or halogen; and n represents 0-4. X represents CH, or N; R represents hydrogen, or -C 1-6 alkyl, said alkyl optionally substituted with 1 to 3 groups of R a R 1 represents hydrogen, -C 1-6 alkyl, -CN, -(CH 2 ) n NH(CH 2 ) n N(R) 2 , -C 2-6 alkenyl, -(CH 2 ) n OR, or-(CH 2 ) n halogen; R 2 represents -OC 1-6 alkyl, -C 2-6 alkenylR 3 , -(CH 2 ) n OR, -(CH 2 ) n halogen, -O(CH 2 ) n halogen, -C 6-10 aryl, -C 5 - 10 heterocyclyl, -O(CH 2 ) n R a , -N(CH 3 )(CH 2 ) n OR, -NRC(O)R, -NH(CH 2 ) n halo, -NC(O)C 6-10 aryl, -NC(O)C 5-10 heterocyclyl, -N(CH 3 )(CH 2 ) n halogen, -C(O)NC 6-10 aryl, said alkyl, aryl,and heterocyclyl optionally substituted with 1 to 3 groups of R a ; or an adjacent R 1 can combine with R 2 to form a nine to ten membered bicyclic ring together with the ring to which R 1 and R 2 are attached, optionally interrupted with N, S, and/or O, said bicyclic ring optionally substituted with 1 to 3 groups of R a ; R 3 represents hydrogen, -C 1-6 alkyl, -(CH 2 ) n halogen, -(CH 2 ) n N(R) 2 , -(CH 2 ) n NR(CH 2 ) n N(R) 2 , -C 6-10 aryl, -C 5-10 heteroaryl, said alkyl, aryl, and heteroaryl optionally substituted with 1 to 3 groups of R a ; R a represents -CN, CF 3 , -C 1-6 alkyl, -C 2-6 alkenyl, -C 2-6 alkynyl, C 6-10 aryl, -C 5-10 heterocyclyl, -CN, NO 2 , (CH 2 ) n halogen, -O(CH 2 ) n halogen, (CH 2 ) n OR, -O(CH 2 ) n C 6-10 aryl, -(CH 2 ) n N(R) 2 , -C(O)N(R) 2 , -N(CH 3 )(CH 2 ) n OR, -NRCOR, -COR, -NH(CH 2 ) n halo, -NC(O)C C 6-10 aryl,-N(CH 3 )(CH 2 ) n halogen, C(O)C 6-10 aryl, or -CO 2 R, said alkyl, alkenyl, alkynyl, aryl, and heterocyclyl optionally substituted with 1 to 3 groups of R b ; R b represents hydrogen, -C 1-6 alkyl, -OR, -(CH 2 ) n N(R) 2 , or halogen; and n represents 0-4. <EOS>