query pretty much works