add filter in and out