removing bad data