low pass filter and min max