added filter_s function for filtering a set via block