updated the filter query