both queries work but not the right queries