added low-pass filtering for output