made query filter actually work