removed debug from query