finish the filter plugin