Retention is based on the attraction between solute ions and charged sites bound to the stationary phase. An increase in counter ion (with respect to the functional groups in resins) concentration reduces the retention time. An increase in pH reduces the retention time in cation exchange while a decrease in pH reduces the retention time in anion exchange.