refactor predicate with size parameters