add predicate methods to the multiple attributes