fix low pass filter calculations