merge from residues