removing bad insertions