updated med_filt(), hp_filt()