added hook to make the filter actually filter