residues methods