more elaborated handling of residues