still debugging query