refactored gen.filter to gen.rejector