removing residuals from merge