modify filtering routines