added silent residue calculations