A compound of the formula wherein n is an integer from 0 to 6; wherein m is an integer from 0 to 1; wherein J and Y are independently a direct bond or selected from the group consisting of -O-, - CO-, -CH 2 -, -S-, -SO-, -SO 2 -, -NH-, -CHR 1 -, -C(R 1) 2 - and -NR 1 -; wherein Ra and Rb are independently selected from the group consisting of hydrogen, halogen, - OCH 3, C 1 -C 3 alkyl, C 2 -C 3 alkenyl, nitrile, trifluoromethyl, amide, amine, and alkylsulfone; wherein R 1 is selected from the group consisting of hydrogen, halogen and C 1 -C 3 alkyl; wherein R 2 is selected from the group consisting of hydrogen, halogen, -OCH 3, -SCH 3, alkylsulfoxide, alkylsulfone, nitrile, -NO 2, C 1 -C 3 alkyl, and trifluoromethyl; wherein R 3 is selected from the group consisting of halogen, nitrile, -COCH 3, -SO 2 CH 3, and -NO 2; wherein R 4 and R 5 are independently selected from the group consisting of hydrogen, C 1 -C 6 alkyl, halogen, -OCH 3, -SCH 3, alkylsulfoxide, alkylsulfone, nitrile, -NO 2, and trifluoromethyl or R 4 and R 5 together form a cycle optionally having a heteroatom selected from the group consisting of nitrogen, oxygen, and sulfur; wherein R 6 and R 7 are independently selected from the group consisting of hydrogen and C 1 -C 6 alkyl or R 6 and R 7 together form a cycle optionally having a heteroatom selected from the group consisting of nitrogen, oxygen, and sulfur; wherein W is selected from the group consisting of oxygen and sulfur; wherein G 1, G 2, G 3, G 4, and G 5 are independently selected from the group consisting of carbon, methine, nitrogen and nitrogen-oxide with a maximum of two nitrogen or nitrogen-oxide in the ring; wherein G 6, G 7, G 8, G 9, and G 10 are independently selected from the group consisting of carbon, methine, nitrogen and nitrogen-oxide with a minimum of one nitrogen or nitrogen-oxide in the ring; and wherein Y is linked to G 1, G 2 or G 4; or a pharmaceutically acceptable salt thereof. wherein n is an integer from 0 to 6; wherein m is an integer from 0 to 1; wherein J and Y are independently a direct bond or selected from the group consisting of -O-, - CO-, -CH 2 -, -S-, -SO-, -SO 2 -, -NH-, -CHR 1 -, -C(R 1) 2 - and -NR 1 -; wherein Ra and Rb are independently selected from the group consisting of hydrogen, halogen, - OCH 3, C 1 -C 3 alkyl, C 2 -C 3 alkenyl, nitrile, trifluoromethyl, amide, amine, and alkylsulfone; wherein R 1 is selected from the group consisting of hydrogen, halogen and C 1 -C 3 alkyl; wherein R 2 is selected from the group consisting of hydrogen, halogen, -OCH 3, -SCH 3, alkylsulfoxide, alkylsulfone, nitrile, -NO 2, C 1 -C 3 alkyl, and trifluoromethyl; wherein R 3 is selected from the group consisting of halogen, nitrile, -COCH 3, -SO 2 CH 3, and -NO 2; wherein R 4 and R 5 are independently selected from the group consisting of hydrogen, C 1 -C 6 alkyl, halogen, -OCH 3, -SCH 3, alkylsulfoxide, alkylsulfone, nitrile, -NO 2, and trifluoromethyl or R 4 and R 5 together form a cycle optionally having a heteroatom selected from the group consisting of nitrogen, oxygen, and sulfur; wherein R 6 and R 7 are independently selected from the group consisting of hydrogen and C 1 -C 6 alkyl or R 6 and R 7 together form a cycle optionally having a heteroatom selected from the group consisting of nitrogen, oxygen, and sulfur; wherein W is selected from the group consisting of oxygen and sulfur; wherein G 1, G 2, G 3, G 4, and G 5 are independently selected from the group consisting of carbon, methine, nitrogen and nitrogen-oxide with a maximum of two nitrogen or nitrogen-oxide in the ring; wherein G 6, G 7, G 8, G 9, and G 10 are independently selected from the group consisting of carbon, methine, nitrogen and nitrogen-oxide with a minimum of one nitrogen or nitrogen-oxide in the ring; and wherein Y is linked to G 1, G 2 or G 4; or a pharmaceutically acceptable salt thereof.