updated hp_filt()