Application of residues 2