residue distribution