removes bad data points before learning