take care of residues