completed filter/selector logic