implemented low pass filtering for analog