added query stuff that doesn't work but didn't break it