added a simple low-pass filter