finished filter stuff

Signed-off-by: derwinlu <derwinlu+git@gmail.com>