added a default param and reordered the filter method