use BDD for filter-function