A method for imparting resistance to staining to a substrate comprising contacting the substrate with a copolymer comprising the monomers of FormulawhereinD is at least one vinyl monomer selected from the group consisting of aryl olefin, alpha olefin and diene,each M is independently H, Ca, Mg, Al, Na, or K,each R1 is independently H, C1-C6 alkyl, or C1-C6 hydroxyalkyl,each R2 is independently linear or branched C1-C12 alkyl, C1-C6 hydroxyalkyl, C6F5, arylalkyl, C6H4OH, R3COOH, or R3SO3H,or R1 and R2 are linked together to form a morpholino or pyrrolidino ring,R3 is linear or branched C1-C12 alkyl, CH(COOH)CH2CH2, C6H4, or C6H3(OH),h1+h2 is h, h is a positive integer,k is zero or a positive integer,i and j are each independently zero or a positive integer,provided that the total of 1) h÷(k+h+i+j) is from about 0.005 to about 0.7, 2) k÷(k+h+i+j) is from about 0.3 to about 0.6, 3) [i+j]÷(k+h+i+j) is 0 to about 0.6, and provided that the sum of 1)+2)+3) is 1.0,said monomers occurring in any sequence.