replace warning for residues