changed query to follow standard
changed query to follow standard