removing bad files