fix and make it more clear that i'm pulling out the filter from the query dict