A compound comprising formula I, or salts thereof wherein, A is a carbocyclyl or heterocyclyl, wherein A is optionally substituted with one or more, the same or different, R 10; X is C-R 6 or N; R 1 is hydrogen or alkyl, wherein R 1 is optionally substituted with one or more, the same or different, R 10; R 2 and R 3 together with the atoms they are bonded to form a carbocyclyl or hetercyclyl, wherein the carbocyclyl or heterocyclyl are optionally substituted with one or more, the same or different, R 10; R 4 is hydrogen, alkyl, halogen, cyano, hydroxy, amino, mercapto, formyl, carboxy, carbamoyl, alkoxy, alkylthio, alkylamino, aminoalkyl, (alkyl) 2 amino, alkylsulfinyl, alkylsulfonyl, arylsulfonyl, carbocyclyl, aryl, or heterocyclyl, wherein R 4 is optionally substituted with one or more, the same or different, R 10; R 5, R 6 and R 7 are each individually and independently hydrogen, halogen, nitro, cyano, hydroxy, trifluoromethoxy, trifluoromethyl, amino, formyl, carboxy, carbamoyl, mercapto, sulfamoyl, methyl, ethyl, methoxy, ethoxy, acetyl, acetoxy, methylamino, ethylamino, dimethylamino, diethylamino, N-methyl-N-ethylamino, acetylamino, N-methylcarbamoyl, N-ethylcarbamoyl, N,N-dimethylcarbamoyl, N,N-diethylcarbamoyl, N-methyl-N-ethylcarbamoyl, methylthio, ethylthio, methylsulfinyl, ethylsulfinyl, mesyl, ethylsulfonyl, methoxycarbonyl, ethoxycarbonyl, N-methylsulfamoyl, N-ethylsulfamoyl, N,N-dimethylsulfamoyl, N,N-diethylsulfamoyl, N-methyl-N-ethylsulfamoyl, carbocyclyl, aryl, or heterocyclyl; R 10 is alkyl, halogen, nitro, cyano, hydroxy, amino, mercapto, formyl, carboxy, carbamoyl, alkoxy, alkylthio, alkylamino, (alkyl) 2 amino, alkylsulfinyl, alkylsulfonyl, arylsulfonyl, carbocyclyl, aryl, or heterocyclyl, wherein R 10 is optionally substituted with one or more, the same or different, R 11; R 11 is alkyl, halogen, nitro, cyano, hydroxy, amino, mercapto, formyl, carboxy, carbamoyl, alkoxy, alkylthio, alkylamino, (alkyl) 2 amino, alkylsulfinyl, alkylsulfonyl, arylsulfonyl, carbocyclyl, aryl, or heterocyclyl, wherein R 11 is optionally substituted with one or more, the same or different, R 12; and R 12 is halogen, nitro, cyano, hydroxy, trifluoromethoxy, trifluoromethyl, amino, formyl, carboxy, carbamoyl, mercapto, sulfamoyl, methyl, ethyl, methoxy, ethoxy, acetyl, acetoxy, methylamino, ethylamino, dimethylamino, diethylamino, N-methyl-N-ethylamino, acetylamino, N-methylcarbamoyl, N-ethylcarbamoyl, N,N-dimethylcarbamoyl, N,N-diethylcarbamoyl, N-methyl-N-ethylcarbamoyl, methylthio, ethylthio, methylsulfinyl, ethylsulfinyl, mesyl, ethylsulfonyl, methoxycarbonyl, ethoxycarbonyl, N-methylsulfamoyl, N-ethylsulfamoyl, N,N-dimethylsulfamoyl, N,N-diethylsulfamoyl, N-methyl-N-ethylsulfamoyl, carbocyclyl, aryl, or heterocyclyl. A is a carbocyclyl or heterocyclyl, wherein A is optionally substituted with one or more, the same or different, R 10; X is C-R 6 or N; R 1 is hydrogen or alkyl, wherein R 1 is optionally substituted with one or more, the same or different, R 10; R 2 and R 3 together with the atoms they are bonded to form a carbocyclyl or hetercyclyl, wherein the carbocyclyl or heterocyclyl are optionally substituted with one or more, the same or different, R 10; R 4 is hydrogen, alkyl, halogen, cyano, hydroxy, amino, mercapto, formyl, carboxy, carbamoyl, alkoxy, alkylthio, alkylamino, aminoalkyl, (alkyl) 2 amino, alkylsulfinyl, alkylsulfonyl, arylsulfonyl, carbocyclyl, aryl, or heterocyclyl, wherein R 4 is optionally substituted with one or more, the same or different, R 10; R 5, R 6 and R 7 are each individually and independently hydrogen, halogen, nitro, cyano, hydroxy, trifluoromethoxy, trifluoromethyl, amino, formyl, carboxy, carbamoyl, mercapto, sulfamoyl, methyl, ethyl, methoxy, ethoxy, acetyl, acetoxy, methylamino, ethylamino, dimethylamino, diethylamino, N-methyl-N-ethylamino, acetylamino, N-methylcarbamoyl, N-ethylcarbamoyl, N,N-dimethylcarbamoyl, N,N-diethylcarbamoyl, N-methyl-N-ethylcarbamoyl, methylthio, ethylthio, methylsulfinyl, ethylsulfinyl, mesyl, ethylsulfonyl, methoxycarbonyl, ethoxycarbonyl, N-methylsulfamoyl, N-ethylsulfamoyl, N,N-dimethylsulfamoyl, N,N-diethylsulfamoyl, N-methyl-N-ethylsulfamoyl, carbocyclyl, aryl, or heterocyclyl; R 10 is alkyl, halogen, nitro, cyano, hydroxy, amino, mercapto, formyl, carboxy, carbamoyl, alkoxy, alkylthio, alkylamino, (alkyl) 2 amino, alkylsulfinyl, alkylsulfonyl, arylsulfonyl, carbocyclyl, aryl, or heterocyclyl, wherein R 10 is optionally substituted with one or more, the same or different, R 11; R 11 is alkyl, halogen, nitro, cyano, hydroxy, amino, mercapto, formyl, carboxy, carbamoyl, alkoxy, alkylthio, alkylamino, (alkyl) 2 amino, alkylsulfinyl, alkylsulfonyl, arylsulfonyl, carbocyclyl, aryl, or heterocyclyl, wherein R 11 is optionally substituted with one or more, the same or different, R 12; and R 12 is halogen, nitro, cyano, hydroxy, trifluoromethoxy, trifluoromethyl, amino, formyl, carboxy, carbamoyl, mercapto, sulfamoyl, methyl, ethyl, methoxy, ethoxy, acetyl, acetoxy, methylamino, ethylamino, dimethylamino, diethylamino, N-methyl-N-ethylamino, acetylamino, N-methylcarbamoyl, N-ethylcarbamoyl, N,N-dimethylcarbamoyl, N,N-diethylcarbamoyl, N-methyl-N-ethylcarbamoyl, methylthio, ethylthio, methylsulfinyl, ethylsulfinyl, mesyl, ethylsulfonyl, methoxycarbonyl, ethoxycarbonyl, N-methylsulfamoyl, N-ethylsulfamoyl, N,N-dimethylsulfamoyl, N,N-diethylsulfamoyl, N-methyl-N-ethylsulfamoyl, carbocyclyl, aryl, or heterocyclyl.