now attrfilter functions receive (attributeValue, parameter, model) as arguments