allow filtering function as an attribute type