editing filter function placement

Signed-off-by: noahg <noah.gunther@gmail.com>