query now works