implements low pass filter