working hpd filtering