adding filtering and less than predicate