improve filtering protocol