A dispersing agent which is a polymer with a backbone prepared from the following components a) to c): a) at least one diglycidyl ether or diglycidylester having the formula wherein R is a linear or branched C 1-36 alkylene, preferably C 2-18, most preferably C 2-12 moiety, or a moiety of the formula wherein R' is a linear or branched C 2-36 alkylene, preferably C 2-18, most preferably C 2-12 moiety; b) at least one polyether amine having the formula wherein R 1 is a linear or branched C 1-6 alkyl moiety m is an integer in the range from 1 to 50 n is an integer in the range from 1 to 50 c) at least one unsaturated dicarboxylic acid of the formula wherein R 2 and R 3 independently from each other are absent or a linear or branched C 1-6 alkylene moiety, or itaconic acid, or two acrylic acid moieties, wherein attached to the double bond of said at least one unsaturated dicarboxylic acid of the general formula is at least one amine of the following formula wherein R 4 and R 5 independently from each other are a linear or branched C 1-6 alkylene moiety, R 6 and R 7 independently from each other are a linear or branched C 1-18 alkyl moiety, preferably C 1 moiety, or are connected with each other so as to form a cyclic nitrogen-containing moiety, preferably cyclohexylamine or piperazine; or a secondary amine of the formula R 6 -NH-R 7, wherein R 6 and R 7 have the same meaning as above, or imidazole or derivatives thereof, or benzimidazole or derivatives thereof; wherein in case two acrylic acid moieties are selected as component C), the amine is a primary amine H 2 N-R 8, wherein R 8 is a residue R 4 -NR 6 R 7, wherein R 4, R 6 and R 7 are as defined above; wherein optionally said amine of formula is in the form of an amine salt. a) at least one diglycidyl ether or diglycidylester having the formula wherein R is a linear or branched C 1-36 alkylene, preferably C 2-18, most preferably C 2-12 moiety, or a moiety of the formula wherein R' is a linear or branched C 2-36 alkylene, preferably C 2-18, most preferably C 2-12 moiety; b) at least one polyether amine having the formula wherein R 1 is a linear or branched C 1-6 alkyl moiety m is an integer in the range from 1 to 50 n is an integer in the range from 1 to 50 R 1 is a linear or branched C 1-6 alkyl moiety m is an integer in the range from 1 to 50 n is an integer in the range from 1 to 50 c) at least one unsaturated dicarboxylic acid of the formula wherein R 2 and R 3 independently from each other are absent or a linear or branched C 1-6 alkylene moiety, or itaconic acid, or two acrylic acid moieties, wherein attached to the double bond of said at least one unsaturated dicarboxylic acid of the general formula is at least one amine of the following formula wherein R 4 and R 5 independently from each other are a linear or branched C 1-6 alkylene moiety, R 6 and R 7 independently from each other are a linear or branched C 1-18 alkyl moiety, preferably C 1 moiety, or are connected with each other so as to form a cyclic nitrogen-containing moiety, preferably cyclohexylamine or piperazine; or a secondary amine of the formula R 6 -NH-R 7, wherein R 6 and R 7 have the same meaning as above, or imidazole or derivatives thereof, or benzimidazole or derivatives thereof; wherein in case two acrylic acid moieties are selected as component C), the amine is a primary amine H 2 N-R 8, wherein R 8 is a residue R 4 -NR 6 R 7, wherein R 4, R 6 and R 7 are as defined above; wherein optionally said amine of formula is in the form of an amine salt. R 2 and R 3 independently from each other are absent or a linear or branched C 1-6 alkylene moiety, or itaconic acid, or two acrylic acid moieties, wherein attached to the double bond of said at least one unsaturated dicarboxylic acid of the general formula is at least one amine of the following formula wherein R 4 and R 5 independently from each other are a linear or branched C 1-6 alkylene moiety, R 6 and R 7 independently from each other are a linear or branched C 1-18 alkyl moiety, preferably C 1 moiety, or are connected with each other so as to form a cyclic nitrogen-containing moiety, preferably cyclohexylamine or piperazine; R 4 and R 5 independently from each other are a linear or branched C 1-6 alkylene moiety, R 6 and R 7 independently from each other are a linear or branched C 1-18 alkyl moiety, preferably C 1 moiety, or are connected with each other so as to form a cyclic nitrogen-containing moiety, preferably cyclohexylamine or piperazine; or a secondary amine of the formula R 6 -NH-R 7, wherein R 6 and R 7 have the same meaning as above, or imidazole or derivatives thereof, or benzimidazole or derivatives thereof; wherein in case two acrylic acid moieties are selected as component C), the amine is a primary amine H 2 N-R 8, wherein R 8 is a residue R 4 -NR 6 R 7, wherein R 4, R 6 and R 7 are as defined above; wherein optionally said amine of formula is in the form of an amine salt.