complete system of residues