Anionic leveling agents act by competing for the dye sites and are mainly used to counter-act fibre-oriented unlevelness due to physical and chemical irregularities in the fibre. As acid dyes are negatively charged, cationic leveling agents form complexes with acid dyes and may precipitate when used alone. Hence in order to counteract both the types of unlevelness it is necessary to use amphoteric leveling agent.