A compound of the following formula: wherein R 1 is independently selected from the group consisting of hydrogen, C 1 -C 4 alkyl, and C 3 -C 7 cycloalkyl; R 2 is independently selected from the group consisting of C 1 -C 4 alkyl, and C 3 -C 7 cycloalkyl; or alternatively R 1 and R 2, together with the atoms to which they are attached, form a 3 to 6 membered ring which may contain oxygen; R 3 and R 4 are independently hydrogen or C 1 -C 4 alkyl; R 5 is hydrogen, or C 1 -C 4 alkyl; R 6 and R 7 are independently selected from hydrogen, C 1 -C 4 alkyl and C 1 -C 4 alkoxy C 1 -C 4 alkyl; or alternatively R 6 and R 7 together with nitrogen atom to which they are attached form a 4 to 6 membered ring which may contain nitrogen or oxygen, wherein the 4 to 6 membered ring is optionally substituted with 1 to 4 substituents independently selected from the group consisting of C 1 -C 4 alkyl, amino, C 1 -C 4 alkylamino, and di(C 1 -C 4 alkyl)amino; A is where p, q, and r are independently 0, 1, or 2; R 8 and R 9 are independently hydrogen, or C 1 -C 6 alkyl; said alkyl is optionally substituted with hydroxy, C 1 -C 4 alkyl, amino, C 1 -C 4 alkylamino, and di(C 1 -C 4 alkyl)amino; or R 8 and R 9 may be joined to one another to form a C 3 -C 7 membered ring; or R 8 and R 9 may independently be joined to one or both of R 8 and R 9 groups to form alkylene bridges between the terminal nitrogen and the alkyl portion of the R 8 or R 9 groups, wherein the bridge contains 1 to 5 carbons atoms; said the bridge is optionally substituted with 1 to 4 of C 1 -C 4 alkyl; W is N-R 10, said R 10 is hydrogen or C 1 -C 4 alkyl; X is C 0 -C 4 alkylene, or C 0 -C 4 alkylene-K-C 0 -C 4 alkylene, where K is -O-; said alkylene is optionally substituted with C 1 -C 4 alkyl,; Y is hydrogen, or 5-10 membered ring; said ring is optionally substituted with hydroxy, halogen, halo C 1 -C 4 alkyl, C 1 -C 4 alkyl, or C 1 -C 4 alkoxy; when X is C 0, Y is not hydrogen; Z is halogen, or C 1 -C 4 alkyl; m is 0, 1, 2, 3, or 4; n is 0, 1, or 2; or a pharmaceutically acceptable salt thereof. R 1 is independently selected from the group consisting of hydrogen, C 1 -C 4 alkyl, and C 3 -C 7 cycloalkyl; R 2 is independently selected from the group consisting of C 1 -C 4 alkyl, and C 3 -C 7 cycloalkyl; or alternatively R 1 and R 2, together with the atoms to which they are attached, form a 3 to 6 membered ring which may contain oxygen; R 3 and R 4 are independently hydrogen or C 1 -C 4 alkyl; R 5 is hydrogen, or C 1 -C 4 alkyl; R 6 and R 7 are independently selected from hydrogen, C 1 -C 4 alkyl and C 1 -C 4 alkoxy C 1 -C 4 alkyl; or alternatively R 6 and R 7 together with nitrogen atom to which they are attached form a 4 to 6 membered ring which may contain nitrogen or oxygen, wherein the 4 to 6 membered ring is optionally substituted with 1 to 4 substituents independently selected from the group consisting of C 1 -C 4 alkyl, amino, C 1 -C 4 alkylamino, and di(C 1 -C 4 alkyl)amino; A is where p, q, and r are independently 0, 1, or 2; R 8 and R 9 are independently hydrogen, or C 1 -C 6 alkyl; said alkyl is optionally substituted with hydroxy, C 1 -C 4 alkyl, amino, C 1 -C 4 alkylamino, and di(C 1 -C 4 alkyl)amino; or R 8 and R 9 may be joined to one another to form a C 3 -C 7 membered ring; or R 8 and R 9 may independently be joined to one or both of R 8 and R 9 groups to form alkylene bridges between the terminal nitrogen and the alkyl portion of the R 8 or R 9 groups, wherein the bridge contains 1 to 5 carbons atoms; said the bridge is optionally substituted with 1 to 4 of C 1 -C 4 alkyl; W is N-R 10, said R 10 is hydrogen or C 1 -C 4 alkyl; X is C 0 -C 4 alkylene, or C 0 -C 4 alkylene-K-C 0 -C 4 alkylene, where K is -O-; said alkylene is optionally substituted with C 1 -C 4 alkyl,; Y is hydrogen, or 5-10 membered ring; said ring is optionally substituted with hydroxy, halogen, halo C 1 -C 4 alkyl, C 1 -C 4 alkyl, or C 1 -C 4 alkoxy; when X is C 0, Y is not hydrogen; Z is halogen, or C 1 -C 4 alkyl; m is 0, 1, 2, 3, or 4; n is 0, 1, or 2; or a pharmaceutically acceptable salt thereof.