trim_noisy_data() is here